nlohmann_json: No more crossAttrs
This commit is contained in:
parent
c9f4991ada
commit
40c33cbd4e
@ -15,17 +15,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
crossAttrs = {
|
cmakeFlags = [
|
||||||
cmakeFlags = "-DBuildTests=OFF";
|
"-DBuildTests=${if doCheck then "ON" else "OFF"}"
|
||||||
doCheck = false;
|
] ++ stdenv.lib.optionals (hostPlatform.libc == "msvcrt") [
|
||||||
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
"-DCMAKE_SYSTEM_NAME=Windows"
|
||||||
cmakeFlags = "-DBuildTests=OFF -DCMAKE_SYSTEM_NAME=Windows";
|
];
|
||||||
};
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Header only C++ library for the JSON file format";
|
description = "Header only C++ library for the JSON file format";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user