overlay/zstd: do not build tests

This commit is contained in:
Ehmry - 2021-04-10 13:33:26 +02:00
parent 4edc22e0fd
commit de8b1a1b71
1 changed files with 15 additions and 0 deletions

View File

@ -247,4 +247,19 @@ in nullPkgs // {
'';
}) zlib;
zstd = let
static = true;
legacySupport = false;
in overrideAttrsHost (attrs: rec {
cmakeFlags = lib.attrsets.mapAttrsToList
(name: value: "-DZSTD_${name}:BOOL=${if value then "ON" else "OFF"}") {
BUILD_SHARED = !static;
BUILD_STATIC = static;
PROGRAMS_LINK_SHARED = !static;
LEGACY_SUPPORT = legacySupport;
BUILD_TESTS = doCheck;
};
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
}) prev.zstd;
}