File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
pkgs/tools/compression/zstd Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22, fixDarwinDylibNames
33, file
44, legacySupport ? false
5- , static ? stdenv . hostPlatform . isStatic
5+ , static ? stdenv . hostPlatform . isStatic # generates static libraries *only*
6+ , enableStatic ? static
67# these need to be ran on the host, thus disable when cross-compiling
78, buildContrib ? stdenv . hostPlatform == stdenv . buildPlatform
89, doCheck ? stdenv . hostPlatform == stdenv . buildPlatform
@@ -54,7 +55,7 @@ stdenv.mkDerivation rec {
5455 cmakeFlags = lib . attrsets . mapAttrsToList
5556 ( name : value : "-DZSTD_${ name } :BOOL=${ if value then "ON" else "OFF" } " ) {
5657 BUILD_SHARED = ! static ;
57- BUILD_STATIC = static ;
58+ BUILD_STATIC = enableStatic ;
5859 BUILD_CONTRIB = buildContrib ;
5960 PROGRAMS_LINK_SHARED = ! static ;
6061 LEGACY_SUPPORT = legacySupport ;
You can’t perform that action at this time.
0 commit comments