summary refs log tree commit diff
path: root/pkgs/tools/package-management/nix
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2022-02-01 00:35:17 +0000
committerGitHub <noreply@github.com>2022-02-01 00:35:17 +0000
commit862c468fab39004fc4cc3d02399a9bceb0d3c0dd (patch)
tree13dcc555ebc12bc794c7bb2123ac1162a04faa3d /pkgs/tools/package-management/nix
parentf3a47fd3e4c4b1b74a9ae4b6e7448a66086a0d0f (diff)
parentf4cc8ee5dd91607ef292a15126c06bfd0177a1b9 (diff)
downloadnixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar.gz
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar.bz2
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar.lz
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar.xz
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.tar.zst
nixpkgs-862c468fab39004fc4cc3d02399a9bceb0d3c0dd.zip
Merge pull request #157596 from hexagonal-sun/nix-darwin-fix
nix >= 2.6.0: fix build on darwin machines
Diffstat (limited to 'pkgs/tools/package-management/nix')
-rw-r--r--pkgs/tools/package-management/nix/common.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/nix/common.nix b/pkgs/tools/package-management/nix/common.nix
index f235849a993..842ef5de328 100644
--- a/pkgs/tools/package-management/nix/common.nix
+++ b/pkgs/tools/package-management/nix/common.nix
@@ -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" ];