about summary refs log tree commit diff
path: root/pkgs/tools/compression/pixz/default.nix
blob: 833dcae8850a99b857847d074408e15bc9f38028 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config
  , asciidoc, libxslt, libxml2, docbook_xml_dtd_45, docbook_xsl
  , libarchive, lzma
}:
stdenv.mkDerivation rec {
  baseName = "pixz";
  version = "1.0.7";
  name = "${baseName}-${version}";

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    autoconf automake libtool asciidoc libxslt libxml2
    docbook_xml_dtd_45 docbook_xsl
    libarchive lzma
  ];
  preBuild = ''
    echo "XML_CATALOG_FILES='$XML_CATALOG_FILES'"
  '';
  src = fetchFromGitHub {
    owner = "vasi";
    repo = baseName;
    rev = "v${version}";
    sha256 = "163axxs22w7pghr786hda22mnlpvmi50hzhfr9axwyyjl9n41qs2";
  };
  preConfigure = ''
    ./autogen.sh
  '';

  meta = {
    inherit version;
    description = "A parallel compressor/decompressor for xz format";
    license = lib.licenses.bsd2;
    maintainers = [lib.maintainers.raskin];
    platforms = lib.platforms.unix;
  };
}