Skip to content

Commit bcff688

Browse files
committed
packaging/dependencies.nix: update nlohmann_json
To illustrate the #13046 problem I'm updating `nlohmann_json` package.
1 parent f683a55 commit bcff688

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packaging/dependencies.nix

+14
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,18 @@ scope: {
102102
./patches/libgit2-packbuilder-callback-interruptible.patch
103103
];
104104
});
105+
106+
# Illustrate the failure for `nlohmann_json` update:
107+
# https://github.com/NixOS/nix/issues/13046
108+
# It exposes `nix` bug in getInteger() where underlying
109+
# json representation is unsigned.
110+
nlohmann_json = pkgs.nlohmann_json.overrideAttrs (oa: {
111+
src = pkgs.fetchFromGitHub {
112+
owner = "nlohmann";
113+
repo = "json";
114+
rev = "v3.12.0";
115+
hash = "sha256-cECvDOLxgX7Q9R3IE86Hj9JJUxraDQvhoyPDF03B2CY=";
116+
};
117+
cmakeFlags = oa.cmakeFlags ++ [ "-DCMAKE_INSTALL_INCLUDEDIR=include" ];
118+
});
105119
}

0 commit comments

Comments
 (0)