3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/physics/sherpa/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-24 23:22:59 +01:00
{ lib, stdenv, fetchurl, autoconf, gfortran, hepmc2, fastjet, lhapdf, rivet, sqlite }:
2016-12-30 17:32:53 +00:00
stdenv.mkDerivation rec {
pname = "sherpa";
2021-10-24 23:22:59 +01:00
version = "2.2.11";
2016-12-30 17:32:53 +00:00
src = fetchurl {
url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
2021-10-24 23:22:59 +01:00
sha256 = "sha256-DrA/h/f/MjGylKxAtVMq6OLvEdb6yB7pRt8UJXNmwi0=";
2016-12-30 17:32:53 +00:00
};
postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
2020-08-16 14:12:48 +01:00
sed -ie '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C
'';
2021-10-24 23:22:59 +01:00
nativeBuildInputs = [ autoconf gfortran ];
buildInputs = [ sqlite lhapdf rivet ];
2016-12-30 17:32:53 +00:00
enableParallelBuilding = true;
2017-01-07 06:36:51 +00:00
configureFlags = [
"--with-sqlite3=${sqlite.dev}"
2019-08-05 21:54:56 +01:00
"--enable-hepmc2=${hepmc2}"
2017-01-07 06:36:51 +00:00
"--enable-fastjet=${fastjet}"
"--enable-lhapdf=${lhapdf}"
"--enable-rivet=${rivet}"
"--enable-pythia"
2017-01-07 06:36:51 +00:00
];
meta = with lib; {
2016-12-30 17:32:53 +00:00
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
2020-04-28 21:42:26 +01:00
license = licenses.gpl2;
homepage = "https://gitlab.com/sherpa-team/sherpa";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
2016-12-30 17:32:53 +00:00
};
}