Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fetchpatch,
|
|
bzip2,
|
|
}:
|
|
|
|
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";
|
|
};
|
|
|
|
patches = [
|
|
# https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
|
|
# https://bugs.launchpad.net/pbzip2/+bug/2081588
|
|
(fetchpatch {
|
|
url = "https://github.com/freebsd/freebsd-ports/raw/974d3ff054965d2bd2ab884a0579ed06c5a08b07/archivers/pbzip2/files/patch-BZ2StreamScanner.cpp";
|
|
extraPrefix = "";
|
|
hash = "sha256-dvXdp+5S41akavy+mvPGHpUxHxenXS7bbTVBVkIJj0s=";
|
|
})
|
|
(fetchpatch {
|
|
url = "https://github.com/freebsd/freebsd-ports/raw/974d3ff054965d2bd2ab884a0579ed06c5a08b07/archivers/pbzip2/files/patch-BZ2StreamScanner.h";
|
|
extraPrefix = "";
|
|
hash = "sha256-/twP8HyHP4cAVgb5cUPq0CgDxUgDYPdd9haH9wDOrz8=";
|
|
})
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pbzip2.cpp \
|
|
--replace-fail '"PRIuMAX"' '" PRIuMAX "'
|
|
'';
|
|
|
|
buildInputs = [ bzip2 ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://compression.ca/pbzip2/";
|
|
description = "Parallel implementation of bzip2 for multi-core machines";
|
|
license = licenses.bsd2;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|