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

27 lines
719 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake }:
2016-06-11 20:38:24 +02:00
stdenv.mkDerivation rec {
pname = "hepmc";
version = "2.06.11";
2016-06-11 20:38:24 +02:00
src = fetchurl {
2019-08-05 22:47:34 +02:00
url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC-${version}.tar.gz";
sha256 = "1pp89bs05nv60wjk1690ndwh4dsd5mk20bzsd4a2lklysdifvb6f";
2016-06-11 20:38:24 +02:00
};
nativeBuildInputs = [ cmake ];
2016-06-11 20:38:24 +02:00
cmakeFlags = [
"-Dmomentum:STRING=GEV"
"-Dlength:STRING=MM"
];
meta = with lib; {
2016-06-11 20:38:24 +02: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 20:38:24 +02:00
};
}