sherpa: 2.2.16 -> 3.0.1 (#385906)

Co-authored-by: emaryn <emaryn@users.noreply.github.com>

authored by emaryn emaryn and committed by GitHub 8b24638d 1639f1fd

+23 -24
+23 -24
pkgs/by-name/sh/sherpa/package.nix
··· 1 { 2 lib, 3 stdenv, 4 - fetchurl, 5 autoconf, 6 gfortran, 7 - hepmc3, 8 - fastjet, 9 lhapdf, 10 - rivet, 11 - sqlite, 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "sherpa"; 16 - version = "2.2.16"; 17 18 - src = fetchurl { 19 - url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz"; 20 - sha256 = "sha256-AntSN5BhtJFuDBoOFvrzoCr/W4SnX5CeAXiTcz9MjUs="; 21 }; 22 23 postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' ··· 27 nativeBuildInputs = [ 28 autoconf 29 gfortran 30 ]; 31 32 buildInputs = [ 33 - sqlite 34 lhapdf 35 - rivet 36 ]; 37 38 enableParallelBuilding = true; 39 40 - configureFlags = [ 41 - "--with-sqlite3=${sqlite.dev}" 42 - "--enable-hepmc3=${hepmc3}" 43 - "--enable-fastjet=${fastjet}" 44 - "--enable-lhapdf=${lhapdf}" 45 - "--enable-rivet=${rivet}" 46 - "--enable-pythia" 47 - ]; 48 49 - meta = with lib; { 50 - description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions"; 51 - license = licenses.gpl2; 52 homepage = "https://gitlab.com/sherpa-team/sherpa"; 53 - platforms = platforms.unix; 54 - maintainers = with maintainers; [ veprbl ]; 55 # never built on aarch64-darwin since first introduction in nixpkgs 56 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; 57 };
··· 1 { 2 lib, 3 stdenv, 4 + fetchFromGitLab, 5 autoconf, 6 gfortran, 7 + cmake, 8 + libzip, 9 + pkg-config, 10 lhapdf, 11 + autoPatchelfHook, 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "sherpa"; 16 + version = "3.0.1"; 17 18 + src = fetchFromGitLab { 19 + owner = "sherpa-team"; 20 + repo = "sherpa"; 21 + tag = "v${version}"; 22 + hash = "sha256-zrtu4LJIzNdUGmnQlvZytYgzESo8eYQIdfxBABgUbzs="; 23 }; 24 25 postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' ··· 29 nativeBuildInputs = [ 30 autoconf 31 gfortran 32 + cmake 33 + pkg-config 34 + autoPatchelfHook 35 ]; 36 37 buildInputs = [ 38 + libzip 39 lhapdf 40 ]; 41 42 enableParallelBuilding = true; 43 44 + preFixup = '' 45 + patchelf --add-rpath $out/lib/SHERPA-MC $out/bin/Sherpa 46 + ''; 47 48 + meta = { 49 + description = "Monte Carlo event generator for the Simulation of High-Energy Reactions of PArticles"; 50 + license = lib.licenses.gpl3Plus; 51 homepage = "https://gitlab.com/sherpa-team/sherpa"; 52 + platforms = lib.platforms.unix; 53 + maintainers = with lib.maintainers; [ veprbl ]; 54 # never built on aarch64-darwin since first introduction in nixpkgs 55 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64; 56 };