1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

packaging/dependencies.nix: update nlohmann_json

To illustrate the https://github.com/NixOS/nix/issues/13046
problem I'm updating `nlohmann_json` package.
This commit is contained in:
Sergei Trofimovich 2025-04-18 18:49:00 +01:00 committed by Jörg Thalheim
parent 4548dd1abb
commit 1ddb50063b

View file

@ -102,4 +102,18 @@ scope: {
./patches/libgit2-packbuilder-callback-interruptible.patch
];
});
# Illustrate the failure for `nlohmann_json` update:
# https://github.com/NixOS/nix/issues/13046
# It exposes `nix` bug in getInteger() where underlying
# json representation is unsigned.
nlohmann_json = pkgs.nlohmann_json.overrideAttrs (oa: {
src = pkgs.fetchFromGitHub {
owner = "nlohmann";
repo = "json";
rev = "v3.12.0";
hash = "sha256-cECvDOLxgX7Q9R3IE86Hj9JJUxraDQvhoyPDF03B2CY=";
};
cmakeFlags = oa.cmakeFlags ++ [ "-DCMAKE_INSTALL_INCLUDEDIR=include" ];
});
}