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

30 lines
796 B
Nix
Raw Normal View History

2016-06-11 19:38:24 +01:00
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
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;
2019-08-05 21:47:34 +01:00
homepage = http://hepmc.web.cern.ch/hepmc/;
2016-06-11 19:38:24 +01:00
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
2016-06-11 19:38:24 +01:00
};
}