Files
nixpkgs/pkgs/by-name/sh/sherpa/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
autoconf,
gfortran,
cmake,
libzip,
pkg-config,
lhapdf,
autoPatchelfHook,
}:
stdenv.mkDerivation rec {
pname = "sherpa";
version = "3.0.1";
src = fetchFromGitLab {
owner = "sherpa-team";
repo = "sherpa";
tag = "v${version}";
hash = "sha256-zrtu4LJIzNdUGmnQlvZytYgzESo8eYQIdfxBABgUbzs=";
};
postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
sed -i -e '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C
'';
nativeBuildInputs = [
autoconf
gfortran
cmake
pkg-config
autoPatchelfHook
];
buildInputs = [
libzip
lhapdf
];
enableParallelBuilding = true;
preFixup = ''
patchelf --add-rpath $out/lib/SHERPA-MC $out/bin/Sherpa
'';
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 = 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;
};
}