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