2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hepmc";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "2.06.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC-${version}.tar.gz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1pp89bs05nv60wjk1690ndwh4dsd5mk20bzsd4a2lklysdifvb6f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-Dmomentum:STRING=GEV"
|
|
|
|
"-Dlength:STRING=MM"
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://hepmc.web.cern.ch/hepmc/";
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|