User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
Admin
Private
I am tog I am studying ICT at HU..
I fucking love
godot and mango juice.

tog prefers the ways of the water and the wind

Het grote genot vind ik in het toeval.

Your views are not my own

Suburbane nostalgie in z'n puurste vorm
Location
Ik ga hard op Lunetten
Birthday
2004-06-04
Webbed site https://hertog.hermitcollective.net
Email hertog@hermitcollective.net
Pronouns Whatever you want me to be
Signal Hertog.04
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@Natuwu ​:mexico_pride:​
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei ah I see
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe @mei yes! I have checked it does exist.

I assume you mean a different g++ output than the post specifies?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @mei I did:
mastodon.hermitcollective.net/notes/a0qjdid2m1mg0e0u
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ @justinas details are here:
mastodon.hermitcollective.net/notes/a0qjdid2m1mg0e0u

the command you asked returned this:

niet-bestaande map "/nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/../../../../x86_64-unknown-linux-gnu/include" wordt genegeerd
Zoektocht voor #include "..." begint hier:
Zoektocht voor #include <...> begint hier:
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0/
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0//x86_64-unknown-linux-gnu
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include/c++/13.3.0//backward
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/include
 /nix/store/v7dbfh5n7az2lcap0z1cv4jq0bikya8p-gcc-13.3.0/lib/gcc/x86_64-unknown-linux-gnu/13.3.0/include-fixed
 /nix/store/932dj5qwfzck90mnvqpd1f9hjqznaqdj-glibc-2.40-36-dev/include
Einde van opzoekingslijst.
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++, not screenreader safe My error log is simply this.
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/game.o -c src/game.cpp
src/game.cpp:1:10: fatal error: SFML/Graphics.hpp: No such file or directory
    1 | #include <SFML/Graphics.hpp>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [src/game.o] Error 1
scons: building terminated because of errors.


The $NIX_CFLAGS_COMPILE variable shows:
-frandom-seed=lxzf700k52 -isystem /nix/store/6gfnx12avg78svzvpxd8dnhhaaxxzy49-sfml-2.5.1/include -isystem /nix/store/901c80rlps5q05bnjk1sj4zaz5k736nc-python3-3.12.7/include -isystem /nix/store/6gfnx12avg78svzvpxd8dnhhaaxxzy49-sfml-2.5.1/include -isystem /nix/store/901c80rlps5q05bnjk1sj4zaz5k736nc-python3-3.12.7/include


And my flake (now just with packages again is this:
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  };

  # Flake outputs
  outputs = { self, nixpkgs, ... }:
    let
      allSystems = [
        "x86_64-linux" # 64-bit Intel/AMD Linux
        "aarch64-linux" # 64-bit ARM Linux
      ];

      forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
        pkgs = import nixpkgs { inherit system; };
      });
    in
    {
      # Development environment output
      devShells = forAllSystems ({ pkgs }: {
          default = pkgs.mkShell {
            packages = with pkgs; [
              skim
              ripgrep
              onefetch

              sfml
              scons
            ];
            
            shellHook = ''
              onefetch
            '';
          };
      });
    };
  }
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @deivpaukst no, it is complaining about the specific header files that the dependency I added provides in /include

I'll share the flake with screenshots in a bit
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ @deivpaukst I have tried this.

No positive results yet
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
I just don't know any distro that quite scratches the same itch
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
I think I might leave NixOS again
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
re: Nix qeustion, C++ When I echo the environment variables it shows it is all there.

But when I hit compile it cannot find it.
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ @oli yeah then idk what it is
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ @oli I could be using pkg-config wrong do you have an example?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ @oli yes!
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Nix qeustion, C++ Anyone have experience with developing C++ using nix?

I for the life of me cannot get my compiler to find the include files I need.
I have the library in my shell packages but it just doesn't work.

I have also tried environment variables and every buildsinputs type at this point but the problem remains.

any ideas?
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@steffo @r0br0t

that would be
@metalkid84 imo
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@steffo @r0br0t it was fun!
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Now I can confirm @r0br0t is real they are kinda based ngl
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
@Mair this is so (un)real
User avatar
tog Hertog tog @hertog@mastodon.hermitcollective.net
1y
Espresso machine oh how I have missed you ❤️