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