Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 58cbb8b

Browse files
committed
fix: include NIX_LDFLAGS on all systems
1 parent 95b8485 commit 58cbb8b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

m1/flake.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@
6262
pname = subnet-cargo-toml.package.name;
6363
version = subnet-cargo-toml.package.version;
6464

65-
env = { LIBCLANG_PATH = "${libclang.lib}/lib"; }
66-
// (lib.optionalAttrs (stdenv.cc.isClang && stdenv.isDarwin) { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; });
67-
65+
env = { LIBCLANG_PATH = "${libclang.lib}/lib"; NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; };
66+
6867
src = ./.;
6968
cargoLock = {
7069
lockFile = ./Cargo.lock;
@@ -80,9 +79,9 @@
8079
};
8180

8281
devShells.default = mkShell {
83-
NIX_LDFLAGS="-l${stdenv.cc.libcxx.cxxabi.libName}";
8482
buildInputs = developmentDependencies;
8583
shellHook = ''
84+
export NIX_LDFLAGS="-l${stdenv.cc.libcxx.cxxabi.libName}"
8685
export PATH=$PATH:${avalanche-network-runner}/bin
8786
export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
8887
'';

0 commit comments

Comments
 (0)