2022-02-10 20:34:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo, lzip }:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "lzlib";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.14";
|
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 {
|
2024-02-29 20:09:43 +00:00
|
|
|
url = "mirror://savannah/lzip/lzlib/lzlib-${finalAttrs.version}.tar.lz";
|
|
|
|
sha256 = "e362ecccd82d4dd297df6a51b952c65d2172f9bf41a5c4590d3604d83aa519d3";
|
|
|
|
# hash from release email
|
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/'
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
makeFlags = [ "CC:=$(CC)" "AR:=$(AR)" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://www.nongnu.org/lzip/lzlib.html";
|
2021-12-06 16:07:01 +00:00
|
|
|
description =
|
|
|
|
"Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
|
2024-02-29 20:09:43 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ ehmry ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
})
|