1 { lib, stdenv, fetchurl, texinfo, lzip }:
3 stdenv.mkDerivation rec {
6 outputs = [ "out" "info" ];
8 nativeBuildInputs = [ texinfo lzip ];
11 url = "mirror://savannah/lzip/${pname}/${pname}-${version}.tar.lz";
12 sha256 = "sha256-3ea9WzJTXxeyjJrCS2ZgfgJQUGrBQypBEso8c/XWYsM=";
15 postPatch = lib.optionalString stdenv.isDarwin ''
16 substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
19 makeFlags = [ "CC:=$(CC)" "AR:=$(AR)" ];
22 configureFlags = [ "--enable-shared" ];
25 homepage = "https://www.nongnu.org/lzip/${pname}.html";
27 "Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
28 license = licenses.bsd2;
29 platforms = platforms.all;
30 maintainers = with maintainers; [ ehmry ];