Merge pull request #157596 from hexagonal-sun/nix-darwin-fix

nix >= 2.6.0: fix build on darwin machines
This commit is contained in:
Ben Siraphob
2022-02-01 00:35:17 +00:00
committed by GitHub
+2 -1
View File
@@ -168,7 +168,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" ];