nixpkgs/pkgs/by-name/lz/lzlib/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.0 KiB
Nix
Raw Normal View History

2022-01-29 17:14:06 +00:00
{ lib, stdenv, fetchurl, texinfo, lzip }:
2021-12-01 14:23:58 +00:00
2024-01-24 06:11:39 +00:00
stdenv.mkDerivation (finalAttrs: {
2021-12-01 14:23:58 +00:00
pname = "lzlib";
2024-01-24 06:11:39 +00:00
version = "1.14";
2021-12-01 14:23:58 +00:00
outputs = [ "out" "info" ];
2022-01-29 17:14:06 +00:00
nativeBuildInputs = [ texinfo lzip ];
2021-12-01 14:23:58 +00:00
src = fetchurl {
2024-01-24 06:11:39 +00:00
url = "mirror://savannah/lzip/lzlib/lzlib-${finalAttrs.version}.tar.lz";
sha256 = "e362ecccd82d4dd297df6a51b952c65d2172f9bf41a5c4590d3604d83aa519d3";
# hash from release email
2021-12-01 14:23:58 +00:00
};
2022-11-07 00:54:52 +00:00
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
'';
2023-10-22 00:41:54 +01:00
makeFlags = [ "CC:=$(CC)" "AR:=$(AR)" ];
2021-12-01 14:23:58 +00:00
doCheck = true;
2022-08-27 01:03:06 +01:00
configureFlags = [ "--enable-shared" ];
2024-01-24 06:11:39 +00:00
meta = {
homepage = "https://www.nongnu.org/lzip/lzlib.html";
2021-12-01 14:23:58 +00:00
description =
"Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
2024-01-24 06:11:39 +00:00
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ehmry ];
2021-12-01 14:23:58 +00:00
};
2024-01-24 06:11:39 +00:00
})