frawk: fix build on darwin
This commit is contained in:
parent
d4abe32acd
commit
c08116fc3d
1 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
, zlib
|
, zlib
|
||||||
, features ? [ "default" ]
|
, features ? [ "default" ]
|
||||||
, llvmPackages_12
|
, llvmPackages_12
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -30,6 +31,11 @@ rustPlatform.buildRustPackage rec {
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||||
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||||
|
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||||
|
};
|
||||||
|
|
||||||
# depends on cpu instructions that may not be available on builders
|
# depends on cpu instructions that may not be available on builders
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue