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

38 lines
941 B
Nix
Raw Normal View History

{
2021-01-15 10:19:50 +01:00
lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
, asciidoc, libxslt, libxml2, docbook_xml_dtd_45, docbook_xsl
2015-12-12 17:38:45 +01:00
, libarchive, lzma
}:
stdenv.mkDerivation rec {
baseName = "pixz";
2020-07-28 00:04:52 +02:00
version = "1.0.7";
2015-12-12 17:38:45 +01:00
name = "${baseName}-${version}";
nativeBuildInputs = [ pkgconfig ];
2015-12-12 17:38:45 +01:00
buildInputs = [
autoconf automake libtool asciidoc libxslt libxml2
docbook_xml_dtd_45 docbook_xsl
2015-12-12 17:38:45 +01:00
libarchive lzma
];
preBuild = ''
echo "XML_CATALOG_FILES='$XML_CATALOG_FILES'"
'';
src = fetchFromGitHub {
owner = "vasi";
repo = baseName;
rev = "v${version}";
2020-07-28 00:04:52 +02:00
sha256 = "163axxs22w7pghr786hda22mnlpvmi50hzhfr9axwyyjl9n41qs2";
2015-12-12 17:38:45 +01:00
};
preConfigure = ''
./autogen.sh
'';
meta = {
inherit version;
description = ''A parallel compressor/decompressor for xz format'';
2021-01-15 10:19:50 +01:00
license = lib.licenses.bsd2;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.unix;
2015-12-12 17:38:45 +01:00
};
}