1{ stdenv, fetchurl, bzip2 }:
2
3let major = "1.1";
4 version = "${major}.13";
5in
6stdenv.mkDerivation rec {
7 name = "pbzip2-${version}";
8
9 src = fetchurl {
10 url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
11 sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
12 };
13
14 buildInputs = [ bzip2 ];
15
16 preBuild = "substituteInPlace Makefile --replace g++ c++";
17
18 installFlags = "PREFIX=$(out)";
19
20 meta = with stdenv.lib; {
21 homepage = http://compression.ca/pbzip2/;
22 description = "A parallel implementation of bzip2 for multi-core machines";
23 license = licenses.bsd2;
24 maintainers = with maintainers; [viric];
25 platforms = platforms.unix;
26 };
27}