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
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
||
lib,
|
||
stdenv,
|
||
fetchurl,
|
||
fetchpatch,
|
||
python ? null,
|
||
withPython ? false,
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "fastjet";
|
||
version = "3.4.3";
|
||
|
||
src = fetchurl {
|
||
url = "http://fastjet.fr/repo/fastjet-${version}.tar.gz";
|
||
hash = "sha256-zBdUcb+rhla4xhg6jl6a0F1fdQbkbzISqagjCQW49qM=";
|
||
};
|
||
|
||
patches = [
|
||
(fetchpatch {
|
||
url = "https://gitlab.com/fastjet/fastjet/-/commit/57ff0184c7cf578bbcdee3667aeaa64288cbae1a.diff";
|
||
hash = "sha256-uz8q7s+YAmbB4oXB+wyaSLo4gWSbEEPdATGDBrxT0vg=";
|
||
})
|
||
];
|
||
|
||
postPatch = ''
|
||
patchShebangs --build fastjet-config.in
|
||
'';
|
||
|
||
buildInputs = lib.optional withPython python;
|
||
|
||
configureFlags = [
|
||
"--enable-allcxxplugins"
|
||
]
|
||
++ lib.optional withPython "--enable-pyext";
|
||
|
||
enableParallelBuilding = true;
|
||
|
||
meta = {
|
||
description = "Software package for jet finding in pp and e+e− collisions";
|
||
mainProgram = "fastjet-config";
|
||
license = lib.licenses.gpl2Plus;
|
||
homepage = "http://fastjet.fr/";
|
||
platforms = lib.platforms.unix;
|
||
maintainers = with lib.maintainers; [ veprbl ];
|
||
};
|
||
}
|