2016-06-11 19:38:24 +01:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hepmc";
|
2019-08-05 21:47:34 +01:00
|
|
|
version = "2.06.10";
|
2016-06-11 19:38:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-05 21:47:34 +01:00
|
|
|
url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC-${version}.tar.gz";
|
|
|
|
sha256 = "190i9jlnwz1xpc495y0xc70s4zdqb9s2zdq1zkjy2ivl7ygdvpjs";
|
2016-06-11 19:38:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./in_source.patch ];
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-Dmomentum:STRING=GEV"
|
|
|
|
"-Dlength:STRING=MM"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hepmc.web.cern.ch/hepmc/";
|
2016-06-11 19:38:24 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-22 11:05:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 19:38:24 +01:00
|
|
|
};
|
|
|
|
}
|