aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix
blob: b27d947ea5c474e0771f2e855e71bd8b96b4dd3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, cmake }:

stdenv.mkDerivation rec {
  pname = "hepmc";
  version = "2.06.11";

  src = fetchurl {
    url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC-${version}.tar.gz";
    sha256 = "1pp89bs05nv60wjk1690ndwh4dsd5mk20bzsd4a2lklysdifvb6f";
  };

  nativeBuildInputs = [ cmake ];

  cmakeFlags = [
    "-Dmomentum:STRING=GEV"
    "-Dlength:STRING=MM"
  ];

  meta = with stdenv.lib; {
    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 ];
  };
}