diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix b/nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix new file mode 100644 index 000000000000..b61db08457fd --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/physics/fastjet-contrib/default.nix @@ -0,0 +1,46 @@ +{ lib, stdenv, fetchurl, fastjet }: + +stdenv.mkDerivation rec { + pname = "fastjet-contrib"; + version = "1.052"; + + src = fetchurl { + url = "https://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz"; + sha256 = "sha256-veY8KMvfmSvt6k3e38PNUsn+wkGnZ8xFXdStEOghDDk="; + }; + + buildInputs = [ fastjet ]; + + postPatch = '' + for f in Makefile.in */Makefile; do + substituteInPlace "$f" --replace "CXX=g++" "" + done + patchShebangs ./configure ./utils/check.sh ./utils/install-sh + ''; + + # Written in shell manually, does not support autoconf-style + # --build=/--host= options: + # Error: --build=x86_64-unknown-linux-gnu: unrecognised argument + configurePlatforms = [ ]; + + enableParallelBuilding = true; + + doCheck = true; + + postBuild = '' + make fragile-shared + ''; + + postInstall = '' + make fragile-shared-install + ''; + + meta = with lib; { + description = "Third party extensions for FastJet"; + homepage = "http://fastjet.fr/"; + changelog = "https://phab.hepforge.org/source/fastjetsvn/browse/contrib/tags/${version}/NEWS?as=source&blame=off"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ veprbl ]; + platforms = platforms.unix; + }; +} |