nixpkgs/pkgs/tools/compression/lzip/default.nix

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

40 lines
1 KiB
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ lib, stdenv, fetchurl, texinfo }:
2013-02-06 13:15:12 +01: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.
2013-02-06 13:15:12 +01:00
stdenv.mkDerivation rec {
pname = "lzip";
2022-02-05 01:11:15 +01:00
version = "1.23";
outputs = [ "out" "man" "info" ];
2013-02-06 13:15:12 +01:00
2018-07-20 19:48:42 +02:00
nativeBuildInputs = [ texinfo ];
2013-03-13 14:04:33 +01:00
2013-02-06 13:15:12 +01:00
src = fetchurl {
url = "mirror://savannah/lzip/${pname}-${version}.tar.gz";
2022-02-05 01:11:15 +01:00
sha256 = "sha256-R5LAR93xXvKdVbqOaKGiHgy3aS2H7N9yBEGYZFgvKA0=";
2013-02-06 13:15:12 +01:00
};
configureFlags = [
"CPPFLAGS=-DNDEBUG"
"CFLAGS=-O3"
"CXXFLAGS=-O3"
"CXX=${stdenv.cc.targetPrefix}c++"
];
2017-12-04 20:08:11 +01:00
setupHook = ./lzip-setup-hook.sh;
2013-02-06 13:15:12 +01:00
doCheck = true;
2017-12-04 20:08:11 +01:00
enableParallelBuilding = true;
2013-02-06 13:15:12 +01:00
2022-01-20 16:25:08 +01:00
meta = with lib; {
homepage = "https://www.nongnu.org/lzip/lzip.html";
description = "A lossless data compressor based on the LZMA algorithm";
license = lib.licenses.gpl2Plus;
2022-01-20 16:25:08 +01:00
maintainers = with maintainers; [ vlaci ];
2021-01-15 10:19:50 +01:00
platforms = lib.platforms.all;
2013-02-06 13:15:12 +01:00
};
}