git.iko.soy/typeable/nixpkgs
on master help sign in
nixVersions.nix_2_7: Propagate nlohmann_json

Just like upstream: https://github.com/NixOS/nix/blob/2.7.0/flake.nix#L136

commiteeab10bd54e2f6a25c27059290e7e7f2b3fd1cf0 authorRobert Hensing <robert@roberthensing.nl> dateThu 10 Mar 2022, 15:29 (5 years ago) parent87fce11
1 file changed+5−3
pkgs/tools/package-management/nix/common.nix+5−3
pkgs/tools/package-management/nix/common.nix+5−3
@@ -101,15 +101,17 @@ stdenv.mkDerivation {
101101 lowdown
102102 ] ++ lib.optionals (atLeast24 && stdenv.isx86_64) [
103103 libcpuid
104− ] ++ lib.optional (atLeast27) [
105− nlohmann_json
106104 ] ++ lib.optionals withLibseccomp [
107105 libseccomp
108106 ] ++ lib.optionals withAWS [
109107 aws-sdk-cpp
110108 ];
111109
112− propagatedBuildInputs = [ boehmgc ];
110+ propagatedBuildInputs = [
111+ boehmgc
112+ ] ++ lib.optional (atLeast27) [
113+ nlohmann_json
114+ ];
113115
114116 NIX_LDFLAGS = lib.optionals (!atLeast24) [
115117 # https://github.com/NixOS/nix/commit/3e85c57a6cbf46d5f0fe8a89b368a43abd26daba