1{ lib, stdenv, fetchFromGitHub, gnulib, perl, autoconf, automake }:
2
3stdenv.mkDerivation rec {
4 pname = "lbzip2";
5 version = "2.5";
6
7 src = fetchFromGitHub {
8 owner = "kjn";
9 repo = "lbzip2";
10 rev = "v${version}";
11 sha256 = "1h321wva6fp6khz6x0i6rqb76xh327nw6v5jhgjpcckwdarj5jv8";
12 };
13
14 buildInputs = [ gnulib perl ];
15 nativeBuildInputs = [ autoconf automake ];
16
17 preConfigure = ''
18 substituteInPlace configure.ac --replace 'AC_PREREQ([2.63])' 'AC_PREREQ(2.64)'
19 ./build-aux/autogen.sh
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/kjn/lbzip2"; # Formerly http://lbzip2.org/
24 description = "Parallel bzip2 compression utility";
25 license = licenses.gpl3;
26 maintainers = with maintainers; [ abbradar ];
27 platforms = platforms.unix;
28 };
29}