nlohmann_json: apply patch for pkg-config path

This commit is contained in:
Doron Behar 2021-03-30 01:05:02 +03:00
parent 1ca0f5bafe
commit b2e4ab5d30

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake
}:
stdenv.mkDerivation rec {
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-THordDPdH2qwk6lFTgeFmkl7iDuA/7YH71PTUe6vJCs=";
};
patches = [
# https://github.com/nlohmann/json/pull/2690
(fetchpatch {
url = "https://github.com/nlohmann/json/commit/53a9850eebb88c6ff95f6042d08d5c0cc9d18097.patch";
sha256 = "k+Og00nXNg5IsFQY5fWD3xVQQXUFFTie44UXole0S1M=";
})
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [