Skip to content

Commit

Permalink
zstd: Fix install name on macOS
Browse files Browse the repository at this point in the history
It had an install name '/usr/local/lib/libzstd.1.dylib'.
  • Loading branch information
edolstra committed Mar 20, 2018
1 parent 47bbd81 commit 7e44f19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/compression/zstd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, gnugrep
, fixDarwinDylibNames
, legacySupport ? false }:

stdenv.mkDerivation rec {
Expand All @@ -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"}"
];
Expand Down

0 comments on commit 7e44f19

Please sign in to comment.