Commit 6d7127b1 authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by ehmry
Browse files

lzlib: fix darwin build

parent 4e9c9c0b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;