nickel: fix build on darwin

This commit is contained in:
Simon Žlender 2023-11-20 23:26:48 +01:00 committed by Anderson Torres
parent 9ec963841b
commit 5f8f287c17

View File

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, python3
, nix-update-script
}:
@ -36,6 +37,11 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "-p nickel-lang-cli" "-p nickel-lang-lsp" ];
env = lib.optionalAttrs stdenv.cc.isClang {
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
nativeBuildInputs = [
python3
];