mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "herwig";
|
|
version = "7.1.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
|
sha256 = "0jnrv59zfa41gc37pqr3vaiz5jkh7w0k0alcax37b3mlbsnacr9r";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
|
|
# There is a bug that requires for MMHT PDF's to be presend during the build
|
|
++ (with lhapdf.pdf_sets; [ MMHT2014lo68cl MMHT2014nlo68cl ]);
|
|
|
|
postPatch = ''
|
|
patchShebangs ./
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-thepeg=${thepeg}"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A multi-purpose particle physics event generator";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
homepage = https://herwig.hepforge.org/;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
|
};
|
|
}
|