2015-11-22 20:12:52 +00:00
|
|
|
{ stdenv, fetchurl, bzip2 }:
|
2009-12-17 11:10:01 +00:00
|
|
|
|
2014-11-01 23:03:25 +00:00
|
|
|
let major = "1.1";
|
2016-04-12 13:07:56 +01:00
|
|
|
version = "${major}.13";
|
2009-12-17 11:10:01 +00:00
|
|
|
in
|
2014-11-01 23:03:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "pbzip2";
|
|
|
|
inherit version;
|
2009-12-17 11:10:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 22:52:01 +01:00
|
|
|
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
|
2016-04-12 13:07:56 +01:00
|
|
|
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
|
2009-12-17 11:10:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bzip2 ];
|
2015-11-22 20:12:52 +00:00
|
|
|
|
|
|
|
preBuild = "substituteInPlace Makefile --replace g++ c++";
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2009-12-17 11:10:01 +00:00
|
|
|
|
2019-04-30 02:28:43 +01:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
|
2019-04-23 03:36:35 +01:00
|
|
|
|
2014-11-01 23:03:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://compression.ca/pbzip2/";
|
2009-12-17 11:10:01 +00:00
|
|
|
description = "A parallel implementation of bzip2 for multi-core machines";
|
2014-11-01 23:03:25 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [viric];
|
2015-11-22 20:12:52 +00:00
|
|
|
platforms = platforms.unix;
|
2009-12-17 11:10:01 +00:00
|
|
|
};
|
|
|
|
}
|