depot/third_party/nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
907 B
Nix

{ 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;
};
}