depot/third_party/nixpkgs/pkgs/tools/compression/lzip/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
810 B
Nix

{ stdenv, fetchurl, texinfo }:
stdenv.mkDerivation rec {
pname = "lzip";
version = "1.21";
nativeBuildInputs = [ texinfo ];
src = fetchurl {
url = "mirror://savannah/lzip/${pname}-${version}.tar.gz";
sha256 = "12qdcw5k1cx77brv9yxi1h4dzwibhfmdpigrj43nfk8nscwm12z4";
};
configureFlags = [
"CPPFLAGS=-DNDEBUG"
"CFLAGS=-O3"
"CXXFLAGS=-O3"
] ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
"CXX=${stdenv.cc.targetPrefix}c++";
setupHook = ./lzip-setup-hook.sh;
doCheck = true;
enableParallelBuilding = true;
meta = {
homepage = "https://www.nongnu.org/lzip/lzip.html";
description = "A lossless data compressor based on the LZMA algorithm";
license = stdenv.lib.licenses.gpl3Plus;
platforms = stdenv.lib.platforms.all;
};
}