diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-02-08 12:26:33 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-02-08 12:26:33 -0500 |
commit | 230f88a4363aec34184202ce6350dfec00eeb24b (patch) | |
tree | 5b7245148b90e62d73efbb0d8ef3565a6710d6d2 /pkgs/development/libraries/physics | |
parent | 1b3affcbaa8e31af0bfe1be280f91ac3e384d96f (diff) | |
download | nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar.gz nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar.bz2 nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar.lz nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar.xz nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.tar.zst nixpkgs-230f88a4363aec34184202ce6350dfec00eeb24b.zip |
hepmc3: init at 3.1.0
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r-- | pkgs/development/libraries/physics/hepmc3/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/hepmc3/default.nix b/pkgs/development/libraries/physics/hepmc3/default.nix new file mode 100644 index 00000000000..972dfdd7ad1 --- /dev/null +++ b/pkgs/development/libraries/physics/hepmc3/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, cmake, coreutils, root }: + +stdenv.mkDerivation rec { + name = "hepmc3-${version}"; + version = "3.1.0"; + + src = fetchurl { + url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC3-${version}.tar.gz"; + sha256 = "12kzdqdbq7md0nn58jvilhh00yddfir65f0q2026k0ym37bfwdyd"; + }; + + buildInputs = [ cmake root ]; + + postInstall = '' + substituteInPlace "$out"/bin/HepMC3-config \ + --replace 'greadlink' '${coreutils}/bin/readlink' + ''; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "The HepMC package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation"; + license = licenses.gpl3; + homepage = http://hepmc.web.cern.ch/hepmc/; + platforms = platforms.unix; + maintainers = with maintainers; [ veprbl ]; + }; +} |