2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fastjet }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fastjet-contrib";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.049";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-05 16:20:37 +00:00
|
|
|
url = "https://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-ri7WIGvGJ4tl6ZpPeN8O6ykR8wGij7V7UMVzwNWGmYc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fastjet ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in Makefile.in */Makefile; do
|
|
|
|
substituteInPlace "$f" --replace "CXX=g++" ""
|
|
|
|
done
|
|
|
|
patchShebangs ./configure ./utils/check.sh ./utils/install-sh
|
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
# Written in shell manually, does not support autoconf-style
|
|
|
|
# --build=/--host= options:
|
|
|
|
# Error: --build=x86_64-unknown-linux-gnu: unrecognised argument
|
|
|
|
configurePlatforms = [ ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make fragile-shared
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
make fragile-shared-install
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Third party extensions for FastJet";
|
|
|
|
homepage = "http://fastjet.fr/";
|
2022-03-05 16:20:37 +00:00
|
|
|
changelog = "https://phab.hepforge.org/source/fastjetsvn/browse/contrib/tags/${version}/NEWS?as=source&blame=off";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|