1 { lib, stdenv, fetchurl, bzip2 }:
4 version = "${major}.13";
6 stdenv.mkDerivation rec {
11 url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
12 sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
15 buildInputs = [ bzip2 ];
17 preBuild = "substituteInPlace Makefile --replace g++ c++";
19 installFlags = [ "PREFIX=$(out)" ];
21 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
24 homepage = "http://compression.ca/pbzip2/";
25 description = "A parallel implementation of bzip2 for multi-core machines";
26 license = licenses.bsd2;
27 maintainers = with maintainers; [viric];
28 platforms = platforms.unix;