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:
parent
4548dd1abb
commit
1ddb50063b
1 changed files with 14 additions and 0 deletions
|
@ -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" ];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue