lzlib: fix darwin build

This commit is contained in:
Stanisław Pitucha 2022-11-07 11:54:52 +11:00 committed by ehmry
parent 4e9c9c0b7c
commit 6d7127b176

View file

@ -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;