sherpa: 2.2.16 -> 3.0.1 (#385906)
Co-authored-by: emaryn <emaryn@users.noreply.github.com>
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitLab,
|
||||
autoconf,
|
||||
gfortran,
|
||||
hepmc3,
|
||||
fastjet,
|
||||
cmake,
|
||||
libzip,
|
||||
pkg-config,
|
||||
lhapdf,
|
||||
rivet,
|
||||
sqlite,
|
||||
autoPatchelfHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sherpa";
|
||||
version = "2.2.16";
|
||||
version = "3.0.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
|
||||
sha256 = "sha256-AntSN5BhtJFuDBoOFvrzoCr/W4SnX5CeAXiTcz9MjUs=";
|
||||
src = fetchFromGitLab {
|
||||
owner = "sherpa-team";
|
||||
repo = "sherpa";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-zrtu4LJIzNdUGmnQlvZytYgzESo8eYQIdfxBABgUbzs=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
||||
@@ -27,31 +29,28 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
gfortran
|
||||
cmake
|
||||
pkg-config
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
libzip
|
||||
lhapdf
|
||||
rivet
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
configureFlags = [
|
||||
"--with-sqlite3=${sqlite.dev}"
|
||||
"--enable-hepmc3=${hepmc3}"
|
||||
"--enable-fastjet=${fastjet}"
|
||||
"--enable-lhapdf=${lhapdf}"
|
||||
"--enable-rivet=${rivet}"
|
||||
"--enable-pythia"
|
||||
];
|
||||
preFixup = ''
|
||||
patchelf --add-rpath $out/lib/SHERPA-MC $out/bin/Sherpa
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
|
||||
license = licenses.gpl2;
|
||||
meta = {
|
||||
description = "Monte Carlo event generator for the Simulation of High-Energy Reactions of PArticles";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
homepage = "https://gitlab.com/sherpa-team/sherpa";
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ veprbl ];
|
||||
# never built on aarch64-darwin since first introduction in nixpkgs
|
||||
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user