Skip to content

Commit

Permalink
lzlib: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
viraptor committed Nov 7, 2022
1 parent fb27e44 commit 61d0e19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/lzlib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-3ea9WzJTXxeyjJrCS2ZgfgJQUGrBQypBEso8c/XWYsM=";
};

postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
'';

makeFlags = [ "CC:=$(CC)" ];
doCheck = true;

Expand Down

0 comments on commit 61d0e19

Please sign in to comment.