diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20 13:41:38 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-03-20 13:43:02 +0100 |
commit | 7e44f19fceaae77422b04f74407f600c404e8ab2 (patch) | |
tree | 29fac4ef077700fc5fe72eddf35db2db3a02091b | |
parent | 47bbd819c78b6966165b5a35050191e5700e8460 (diff) | |
download | nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar.gz nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar.bz2 nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar.lz nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar.xz nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.tar.zst nixpkgs-7e44f19fceaae77422b04f74407f600c404e8ab2.zip |
zstd: Fix install name on macOS
It had an install name '/usr/local/lib/libzstd.1.dylib'.
-rw-r--r-- | pkgs/tools/compression/zstd/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/compression/zstd/default.nix b/pkgs/tools/compression/zstd/default.nix index 457170013ce..6617a4346e5 100644 --- a/pkgs/tools/compression/zstd/default.nix +++ b/pkgs/tools/compression/zstd/default.nix @@ -1,4 +1,5 @@ { stdenv, fetchFromGitHub, gnugrep +, fixDarwinDylibNames , legacySupport ? false }: stdenv.mkDerivation rec { @@ -12,6 +13,8 @@ stdenv.mkDerivation rec { owner = "facebook"; }; + buildInputs = stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; + makeFlags = [ "ZSTD_LEGACY_SUPPORT=${if legacySupport then "1" else "0"}" ]; |