diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2022-02-01 00:35:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 00:35:17 +0000 |
commit | 862c468fab39004fc4cc3d02399a9bceb0d3c0dd (patch) | |
tree | 13dcc555ebc12bc794c7bb2123ac1162a04faa3d /pkgs/tools/package-management/nix | |
parent | f3a47fd3e4c4b1b74a9ae4b6e7448a66086a0d0f (diff) | |
parent | f4cc8ee5dd91607ef292a15126c06bfd0177a1b9 (diff) | |
download | nixpkgs-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.nix | 3 |
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" ]; |