about summary refs log tree commit diff
path: root/pkgs/tools/compression/pbzip2/default.nix
blob: 352b4db6a3416b48492d6616a8f744a78178e7bb (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
{ stdenv, fetchurl, bzip2 }:

let major = "1.1";
    version = "${major}.12";
in
stdenv.mkDerivation rec {
  name = "pbzip2-${version}";

  src = fetchurl {
    url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
    sha256 = "1vk6065dv3a47p86vmp8hv3n1ygd9hraz0gq89gvzlx7lmcb6fsp";
  };

  buildInputs = [ bzip2 ];

  preBuild = "substituteInPlace Makefile --replace g++ c++";

  installFlags = "PREFIX=$(out)";

  meta = with stdenv.lib; {
    homepage = http://compression.ca/pbzip2/;
    description = "A parallel implementation of bzip2 for multi-core machines";
    license = licenses.bsd2;
    maintainers = with maintainers; [viric];
    platforms = platforms.unix;
  };
}