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

27 lines
721 B
Nix
Raw Normal View History

2016-06-11 19:38:24 +01:00
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "hepmc";
version = "2.06.11";
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 = "1pp89bs05nv60wjk1690ndwh4dsd5mk20bzsd4a2lklysdifvb6f";
2016-06-11 19:38:24 +01:00
};
nativeBuildInputs = [ cmake ];
2016-06-11 19:38:24 +01:00
cmakeFlags = [
"-Dmomentum:STRING=GEV"
"-Dlength:STRING=MM"
];
meta = with stdenv.lib; {
2016-06-11 19:38:24 +01:00
description = "The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators";
license = licenses.lgpl21;
homepage = "http://hepmc.web.cern.ch/hepmc/";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
2016-06-11 19:38:24 +01:00
};
}