zstd: Fix install name on macOS

It had an install name '/usr/local/lib/libzstd.1.dylib'.
This commit is contained in:
Eelco Dolstra 2018-03-20 13:41:38 +01:00
parent 47bbd819c7
commit 7e44f19fce
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -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"}"
];