2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
|
|
# files.
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lzip";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "1.23";
|
|
|
|
outputs = [ "out" "man" "info" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ texinfo ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/lzip/${pname}-${version}.tar.gz";
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-R5LAR93xXvKdVbqOaKGiHgy3aS2H7N9yBEGYZFgvKA0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"CPPFLAGS=-DNDEBUG"
|
|
|
|
"CFLAGS=-O3"
|
|
|
|
"CXXFLAGS=-O3"
|
2022-02-10 20:34:41 +00:00
|
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
setupHook = ./lzip-setup-hook.sh;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.nongnu.org/lzip/lzip.html";
|
|
|
|
description = "A lossless data compressor based on the LZMA algorithm";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ vlaci ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|