3
0
Fork 0
forked from mirrors/nixpkgs

nix: fix build on darwin machines

This commit is contained in:
Matthew Leach 2022-01-31 22:09:37 +00:00
parent 23881e27ef
commit f4cc8ee5dd

View file

@ -165,7 +165,8 @@ stdenv.mkDerivation {
makeFlags = [
"profiledir=$(out)/etc/profile.d"
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "PRECOMPILE_HEADERS=0";
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "PRECOMPILE_HEADERS=0"
++ lib.optional (stdenv.hostPlatform.isDarwin) "PRECOMPILE_HEADERS=1";
installFlags = [ "sysconfdir=$(out)/etc" ];