mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 17:39:34 +00:00
zstd: Fix install name on macOS
It had an install name '/usr/local/lib/libzstd.1.dylib'.
This commit is contained in:
parent
47bbd819c7
commit
7e44f19fce
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, fetchFromGitHub, gnugrep
|
{ stdenv, fetchFromGitHub, gnugrep
|
||||||
|
, fixDarwinDylibNames
|
||||||
, legacySupport ? false }:
|
, legacySupport ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -12,6 +13,8 @@ stdenv.mkDerivation rec {
|
||||||
owner = "facebook";
|
owner = "facebook";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"ZSTD_LEGACY_SUPPORT=${if legacySupport then "1" else "0"}"
|
"ZSTD_LEGACY_SUPPORT=${if legacySupport then "1" else "0"}"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue