lol
1{ lib, stdenv, fetchurl, bzip2 }:
2
3let major = "1.1";
4 version = "${major}.13";
5in
6stdenv.mkDerivation rec {
7 pname = "pbzip2";
8 inherit version;
9
10 src = fetchurl {
11 url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
12 sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
13 };
14
15 buildInputs = [ bzip2 ];
16
17 preBuild = "substituteInPlace Makefile --replace g++ c++";
18
19 installFlags = [ "PREFIX=$(out)" ];
20
21 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
22
23 meta = with lib; {
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;
29 };
30}