nixpkgs/pkgs/by-name/fa/fastjet-contrib/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

47 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, fastjet }:
stdenv.mkDerivation rec {
pname = "fastjet-contrib";
version = "1.055";
src = fetchurl {
url = "https://fastjet.hepforge.org/contrib/downloads/fjcontrib-${version}.tar.gz";
sha256 = "sha256-2apGVg/f2FCC8gKlqc5kdo/gxZhmDwEyBqjJwX7NDzY=";
};
buildInputs = [ fastjet ];
postPatch = ''
for f in Makefile.in */Makefile; do
substituteInPlace "$f" --replace "CXX=g++" ""
done
patchShebangs ./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;
};
}