Merge pull request #134377 from Pamplemousse/pkgsStatic_fixes

zstd: Fix static build

authored by

Jörg Thalheim and committed by
GitHub
8517ea00 b02a7247

+7
+7
pkgs/tools/compression/zstd/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, bash, gnugrep 2 2 , fixDarwinDylibNames 3 3 , file 4 + , fetchpatch 4 5 , legacySupport ? false 5 6 , static ? stdenv.hostPlatform.isStatic 6 7 # these need to be ran on the host, thus disable when cross-compiling ··· 27 28 # This patches makes sure we do not attempt to use the MD5 implementation 28 29 # of the host platform when running the tests 29 30 ./playtests-darwin.patch 31 + 32 + # Fixes linking for static builds 33 + (fetchpatch { 34 + url = "https://github.com/facebook/zstd/pull/2724/commits/e1f85dbca3a0ed5ef06c8396912a0914db8dea6a.patch"; 35 + sha256 = "sha256-PuYAqnJWAE+L9bsroOnnBGJhERW8LHrGSLtIEkKU9vg="; 36 + }) 30 37 ]; 31 38 32 39 postPatch = lib.optionalString (!static) ''