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

30 lines
822 B
Nix
Raw Normal View History

2016-06-11 19:38:24 +01:00
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "hepmc-${version}";
version = "2.06.09";
src = fetchurl {
url = "http://lcgapp.cern.ch/project/simu/HepMC/download/HepMC-${version}.tar.gz";
sha256 = "020sc7hzy7d6d1i6bs352hdzy5zy5zxkc33cw0jhh8s0jz5281y6";
};
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;
homepage = http://lcgapp.cern.ch/project/simu/HepMC/;
platforms = stdenv.lib.platforms.unix;
2016-10-21 18:29:57 +01:00
maintainers = with stdenv.maintainers; [ veprbl ];
2016-06-11 19:38:24 +01:00
};
}