2022-02-10 20:34:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo, lzip }:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lzlib";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.13";
|
2021-12-06 16:07:01 +00:00
|
|
|
outputs = [ "out" "info" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [ texinfo lzip ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "mirror://savannah/lzip/${pname}/${pname}-${version}.tar.lz";
|
|
|
|
sha256 = "sha256-3ea9WzJTXxeyjJrCS2ZgfgJQUGrBQypBEso8c/XWYsM=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.nongnu.org/lzip/${pname}.html";
|
|
|
|
description =
|
|
|
|
"Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
};
|
|
|
|
}
|