2021-09-18 10:52:07 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
|
|
|
|
, python
|
|
|
|
|
, withPython ? false
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "fastjet";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
version = "3.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "http://fastjet.fr/repo/fastjet-${version}.tar.gz";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
hash = "sha256-7gfIdHyOrYbYjeSp5OjR6efXYUlz9WMbqCl/egJHi5E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
|
buildInputs = lib.optional withPython python;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
|
"--enable-allcxxplugins"
|
2021-09-18 10:52:07 +00:00
|
|
|
|
] ++ lib.optional withPython "--enable-pyext";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "A software package for jet finding in pp and e+e− collisions";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
homepage = "http://fastjet.fr/";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
}
|