2019-02-08 17:26:33 +00:00
|
|
|
{ stdenv, fetchurl, cmake, coreutils, root }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hepmc3";
|
2020-03-09 18:36:23 +00:00
|
|
|
version = "3.2.0";
|
2019-02-08 17:26:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC3-${version}.tar.gz";
|
2020-03-09 18:36:23 +00:00
|
|
|
sha256 = "1z491x3blqs0a2jxmhzhmh4kqdw3ddcbvw69gidg4w6icdvkhcpi";
|
2019-02-08 17:26:33 +00:00
|
|
|
};
|
|
|
|
|
2020-03-09 18:36:23 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ root ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DHEPMC3_ENABLE_PYTHON=OFF"
|
|
|
|
];
|
2019-02-08 17:26:33 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out"/bin/HepMC3-config \
|
2020-03-09 18:36:23 +00:00
|
|
|
--replace 'greadlink' '${coreutils}/bin/readlink' \
|
|
|
|
--replace 'readlink' '${coreutils}/bin/readlink'
|
2019-02-08 17:26:33 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The HepMC package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation";
|
2020-03-09 18:36:23 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "http://hepmc.web.cern.ch/hepmc/";
|
|
|
|
platforms = platforms.unix;
|
2019-02-08 17:26:33 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|