nixpkgs/pkgs/development/libraries/physics/pythia/default.nix
Artturin 20591326aa treewide: remove unnecessary patching of configure script
The configure phase of `stdenv` now runs `patchShebangs` on
`configureScript`.

Did not remove `patchShebangs` in packages which override `configurePhase`
2023-11-25 18:16:12 +02:00

35 lines
1008 B
Nix

{ lib, stdenv, fetchurl, boost, fastjet, fixDarwinDylibNames, hepmc, lhapdf, rsync, zlib }:
stdenv.mkDerivation rec {
pname = "pythia";
version = "8.310";
src = fetchurl {
url = "https://pythia.org/download/pythia83/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
sha256 = "sha256-kMgRq+ej0v/b+bSuq1HPbgpai++04++oBvPVucMR4ic=";
};
nativeBuildInputs = [ rsync ]
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
buildInputs = [ boost fastjet hepmc zlib lhapdf ];
configureFlags = [
"--enable-shared"
"--with-lhapdf6=${lhapdf}"
] ++ (if lib.versions.major hepmc.version == "3" then [
"--with-hepmc3=${hepmc}"
] else [
"--with-hepmc2=${hepmc}"
]);
enableParallelBuilding = true;
meta = with lib; {
description = "A program for the generation of high-energy physics events";
license = licenses.gpl2Only;
homepage = "https://pythia.org";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
};
}