sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / lz / lzlib / package.nix
blob18ca21fdc8daf4adb78c8da53e090b4545ffed34
2   lib,
3   stdenv,
4   fetchurl,
5   texinfo,
6   lzip,
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "lzlib";
11   version = "1.15";
12   outputs = [
13     "out"
14     "info"
15   ];
17   nativeBuildInputs = [
18     texinfo
19     lzip
20   ];
22   src = fetchurl {
23     url = "mirror://savannah/lzip/lzlib/lzlib-${finalAttrs.version}.tar.lz";
24     hash = "sha256-nUVIDnyBccZPodW+7iy9guaf6+kQ8M5ii4dqj+IUFTQ=";
25     # hash from release email
26   };
28   postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
29     substituteInPlace Makefile.in --replace '-Wl,--soname=' '-Wl,-install_name,$(out)/lib/'
30   '';
32   makeFlags = [
33     "CC:=$(CC)"
34     "AR:=$(AR)"
35   ];
36   doCheck = true;
38   configureFlags = [ "--enable-shared" ];
40   meta = {
41     homepage = "https://www.nongnu.org/lzip/lzlib.html";
42     description = "Data compression library providing in-memory LZMA compression and decompression functions, including integrity checking of the decompressed data";
43     license = lib.licenses.bsd2;
44     platforms = lib.platforms.all;
45     maintainers = with lib.maintainers; [ ehmry ];
46   };