nixpkgs/pkgs/development/libraries/physics/fastjet/default.nix

34 lines
837 B
Nix
Raw Normal View History

2017-11-18 00:23:42 +03:00
{ stdenv, fetchurl, python2 }:
2016-06-11 20:40:58 +03:00
stdenv.mkDerivation rec {
name = "fastjet-${version}";
2017-11-18 00:23:42 +03:00
version = "3.3.0";
2016-06-11 20:40:58 +03:00
src = fetchurl {
url = "http://fastjet.fr/repo/fastjet-${version}.tar.gz";
2017-11-18 00:23:42 +03:00
sha256 = "03x75mmnlw2m0a7669k82rf9a7dgjwygf8wjbk8cdgnb82c5pnp9";
2016-06-11 20:40:58 +03:00
};
2017-11-18 00:23:42 +03:00
buildInputs = [ python2 ];
postPatch = ''
substituteInPlace plugins/SISCone/SISConeBasePlugin.cc \
--replace 'structure_of<UserScaleBase::StructureType>()' \
'structure_of<UserScaleBase>()'
'';
2017-11-18 00:23:42 +03:00
configureFlags = [
"--enable-allcxxplugins"
"--enable-pyext"
];
2016-06-11 20:40:58 +03:00
enableParallelBuilding = true;
meta = {
description = "A software package for jet finding in pp and e+e collisions";
license = stdenv.lib.licenses.gpl2;
homepage = http://fastjet.fr/;
platforms = stdenv.lib.platforms.unix;
};
}