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

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