2015-11-22 21:12:52 +01:00
|
|
|
{ stdenv, fetchurl, bzip2 }:
|
2009-12-17 12:10:01 +01:00
|
|
|
|
2014-11-02 00:03:25 +01:00
|
|
|
let major = "1.1";
|
2015-11-24 10:03:48 +01:00
|
|
|
version = "${major}.12";
|
2009-12-17 12:10:01 +01:00
|
|
|
in
|
2014-11-02 00:03:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pbzip2-${version}";
|
2009-12-17 12:10:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-02 00:03:25 +01:00
|
|
|
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${name}.tar.gz";
|
2015-11-24 10:03:48 +01:00
|
|
|
sha256 = "1vk6065dv3a47p86vmp8hv3n1ygd9hraz0gq89gvzlx7lmcb6fsp";
|
2009-12-17 12:10:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bzip2 ];
|
2015-11-22 21:12:52 +01:00
|
|
|
|
|
|
|
preBuild = "substituteInPlace Makefile --replace g++ c++";
|
|
|
|
|
2015-11-24 10:07:21 +01:00
|
|
|
installFlags = "PREFIX=$(out)";
|
2009-12-17 12:10:01 +01:00
|
|
|
|
2014-11-02 00:03:25 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-12-17 12:10:01 +01:00
|
|
|
homepage = http://compression.ca/pbzip2/;
|
|
|
|
description = "A parallel implementation of bzip2 for multi-core machines";
|
2014-11-02 00:03:25 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [viric];
|
2015-11-22 21:12:52 +01:00
|
|
|
platforms = platforms.unix;
|
2009-12-17 12:10:01 +01:00
|
|
|
};
|
|
|
|
}
|