diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-12-11 13:42:04 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-12-11 13:42:04 -0500 |
commit | bd7a6594055ef1024c2f477c4c222202af1d5e68 (patch) | |
tree | 2970685bfe3d166398642d4166a777c95f854544 | |
parent | b6b59334bbb7b3ca273fb729483dcaa2a6f889c8 (diff) |
nix: fix darwin build
-rw-r--r-- | pkgs/tools/package-management/nix/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 59651c973c377..1a8a488934697 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -78,6 +78,9 @@ common = propagatedBuildInputs = [ boehmgc ]; + # src/nix-build/nix-build.cc:463:41: error: 'value' is unavailable: introduced in macOS 10.13 + NIX_CFLAGS_COMPILE = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY"; + NIX_LDFLAGS = lib.optionals (!is24) [ # https://github.com/NixOS/nix/commit/3e85c57a6cbf46d5f0fe8a89b368a43abd26daba (lib.optionalString enableStatic "-lssl -lbrotlicommon -lssh2 -lz -lnghttp2 -lcrypto") |