Skip to content

Commit

Permalink
fix: include NIX_LDFLAGS on all systems
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjsbell committed Feb 21, 2024
1 parent 95b8485 commit 58cbb8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions m1/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@
pname = subnet-cargo-toml.package.name;
version = subnet-cargo-toml.package.version;

env = { LIBCLANG_PATH = "${libclang.lib}/lib"; }
// (lib.optionalAttrs (stdenv.cc.isClang && stdenv.isDarwin) { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; });

env = { LIBCLANG_PATH = "${libclang.lib}/lib"; NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; };

src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
Expand All @@ -80,9 +79,9 @@
};

devShells.default = mkShell {
NIX_LDFLAGS="-l${stdenv.cc.libcxx.cxxabi.libName}";
buildInputs = developmentDependencies;
shellHook = ''
export NIX_LDFLAGS="-l${stdenv.cc.libcxx.cxxabi.libName}"
export PATH=$PATH:${avalanche-network-runner}/bin
export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
'';
Expand Down

0 comments on commit 58cbb8b

Please sign in to comment.