diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix b/nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix new file mode 100644 index 000000000000..e2ab42c418a0 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/physics/hepmc2/default.nix @@ -0,0 +1,26 @@ +{ lib, 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 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 ]; + }; +} |