summary refs log tree commit diff
path: root/pkgs/development/libraries/physics
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2019-02-08 19:26:58 +0100
committerGitHub <noreply@github.com>2019-02-08 19:26:58 +0100
commit3b1e68b79e3ad5b29b0498353c11ebc4c1932b60 (patch)
tree20da2dc516d0576a8bebaae88b9a8abfb270eb2f /pkgs/development/libraries/physics
parent3b72c44663858f9b320fea626582ea03fe8a6040 (diff)
parent230f88a4363aec34184202ce6350dfec00eeb24b (diff)
downloadnixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar.gz
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar.bz2
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar.lz
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar.xz
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.tar.zst
nixpkgs-3b1e68b79e3ad5b29b0498353c11ebc4c1932b60.zip
Merge pull request #55454 from veprbl/pr/hepmc3_init
hepmc3: init at 3.1.0
Diffstat (limited to 'pkgs/development/libraries/physics')
-rw-r--r--pkgs/development/libraries/physics/hepmc3/default.nix28
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 ];
+  };
+}