1{ lib
2, stdenv
3, fetchurl
4, python ? null
5, withPython ? false
6}:
7
8stdenv.mkDerivation rec {
9 pname = "fastjet";
10 version = "3.4.1";
11
12 src = fetchurl {
13 url = "http://fastjet.fr/repo/fastjet-${version}.tar.gz";
14 hash = "sha256-BWCMb/IT8G3Z3nI4E9a03M1R5mGsEwmPdL/J7q8ctao=";
15 };
16
17 buildInputs = lib.optional withPython python;
18
19 configureFlags = [
20 "--enable-allcxxplugins"
21 ] ++ lib.optional withPython "--enable-pyext";
22
23 enableParallelBuilding = true;
24
25 meta = {
26 description = "A software package for jet finding in pp and e+e− collisions";
27 license = lib.licenses.gpl2Plus;
28 homepage = "http://fastjet.fr/";
29 platforms = lib.platforms.unix;
30 maintainers = with lib.maintainers; [ veprbl ];
31 };
32}