2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bzip2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let major = "1.1";
|
|
|
|
version = "${major}.13";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pbzip2";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bzip2 ];
|
|
|
|
|
|
|
|
preBuild = "substituteInPlace Makefile --replace g++ c++";
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://compression.ca/pbzip2/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Parallel implementation of bzip2 for multi-core machines";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [viric];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|