about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-11-18 14:43:50 -0500
committerJon <jonringer@users.noreply.github.com>2019-11-19 09:38:06 -0800
commit3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f (patch)
tree244ee25eb01a7829fd6eec8239704f3c36333c0c /pkgs
parent52fb21e78f56b3a795b1c340f8ac34ca7c10a974 (diff)
downloadnixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar.gz
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar.bz2
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar.lz
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar.xz
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.tar.zst
nixlib-3ff236097b3b6e1f4c9eb7295baed0e88a7c3a6f.zip
fastjet-contrib: init at 1.042
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/physics/fastjet-contrib/default.nix40
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/fastjet-contrib/default.nix b/pkgs/development/libraries/physics/fastjet-contrib/default.nix
new file mode 100644
index 000000000000..2bc5b12dfb77
--- /dev/null
+++ b/pkgs/development/libraries/physics/fastjet-contrib/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, fastjet }:
+
+stdenv.mkDerivation rec {
+  pname = "fastjet-contrib";
+  version = "1.042";
+
+  src = fetchurl {
+    url = "http://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz";
+    sha256 = "0cc8dn6g7adj2pgs8hvczg68i3xhlk6978m4gxamgibilf9jw1av";
+  };
+
+  buildInputs = [ fastjet ];
+
+  postPatch = ''
+    for f in Makefile.in */Makefile; do
+      substituteInPlace "$f" --replace "CXX=g++" ""
+    done
+    patchShebangs ./configure ./utils/check.sh ./utils/install-sh
+  '';
+
+  enableParallelBuilding = true;
+
+  doCheck = true;
+
+  postBuild = ''
+    make fragile-shared
+  '';
+
+  postInstall = ''
+    make fragile-shared-install
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Third party extensions for FastJet";
+    homepage = "http://fastjet.fr/";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ veprbl ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 7a7800a59c70..4ab6d468eadf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -24251,6 +24251,8 @@ in
 
   fastjet = callPackage ../development/libraries/physics/fastjet { };
 
+  fastjet-contrib = callPackage ../development/libraries/physics/fastjet-contrib { };
+
   fastnlo = callPackage ../development/libraries/physics/fastnlo { };
 
   geant4 = libsForQt5.callPackage ../development/libraries/physics/geant4 { };