nixpkgs/pkgs/by-name/th/thepeg/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

41 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, boost, fastjet, gsl, hepmc3, lhapdf, rivet, zlib }:
stdenv.mkDerivation rec {
pname = "thepeg";
version = "2.3.0";
src = fetchurl {
url = "https://www.hepforge.org/archive/thepeg/ThePEG-${version}.tar.bz2";
hash = "sha256-rDWXmuicKWCMqSwVakn/aKrOeloSoMkvCgGoM9LTRXI=";
};
patches = [
# Rivet 4 support
(fetchpatch {
url = "https://github.com/hep-mirrors/thepeg/commit/d974704fe48876c13cb7f544cabcf6ef30c00f48.diff";
hash = "sha256-HzyNigbhWzSpjvvYw3+LZvnrSoV6Pmzghw/5VY5nlqk=";
})
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ boost fastjet gsl hepmc3 lhapdf rivet zlib ];
configureFlags = [
"--with-hepmc=${hepmc3}"
"--with-hepmcversion=3"
"--with-rivet=${rivet}"
"--without-javagui"
];
enableParallelBuilding = true;
meta = with lib; {
description = "Toolkit for High Energy Physics Event Generation";
homepage = "https://herwig.hepforge.org/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ veprbl ];
platforms = platforms.unix;
};
}