depot/third_party/nixpkgs/pkgs/by-name/lz/lzlib/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
1,023 B
Nix

{ lib, stdenv, fetchurl, texinfo, lzip }:
stdenv.mkDerivation (finalAttrs: {
pname = "lzlib";
version = "1.14";
outputs = [ "out" "info" ];
nativeBuildInputs = [ texinfo lzip ];
src = fetchurl {
url = "mirror://savannah/lzip/lzlib/lzlib-${finalAttrs.version}.tar.lz";
hash = "sha256-42LszNgtTdKX32pRuVLGXSFy+b9BpcRZDTYE2DqlGdM=";
# hash from release email
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
'';
makeFlags = [ "CC:=$(CC)" "AR:=$(AR)" ];
doCheck = true;
configureFlags = [ "--enable-shared" ];
meta = {
homepage = "https://www.nongnu.org/lzip/lzlib.html";
description =
"Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ehmry ];
};
})