Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 65 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 autoreconfHook, 7 boost, 8 fastjet, 9 gsl, 10 hepmc3, 11 lhapdf, 12 rivet, 13 zlib, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "thepeg"; 18 version = "2.3.0"; 19 20 src = fetchurl { 21 url = "https://www.hepforge.org/archive/thepeg/ThePEG-${version}.tar.bz2"; 22 hash = "sha256-rDWXmuicKWCMqSwVakn/aKrOeloSoMkvCgGoM9LTRXI="; 23 }; 24 25 patches = [ 26 # Rivet 4 support 27 (fetchpatch { 28 url = "https://github.com/hep-mirrors/thepeg/commit/d974704fe48876c13cb7f544cabcf6ef30c00f48.diff"; 29 hash = "sha256-HzyNigbhWzSpjvvYw3+LZvnrSoV6Pmzghw/5VY5nlqk="; 30 }) 31 ]; 32 33 nativeBuildInputs = [ autoreconfHook ]; 34 35 buildInputs = [ 36 boost 37 fastjet 38 gsl 39 hepmc3 40 lhapdf 41 rivet 42 zlib 43 ]; 44 45 configureFlags = [ 46 "--with-hepmc=${hepmc3}" 47 "--with-hepmcversion=3" 48 "--with-rivet=${rivet}" 49 "--without-javagui" 50 ]; 51 52 enableParallelBuilding = true; 53 54 meta = { 55 description = "Toolkit for High Energy Physics Event Generation"; 56 homepage = "https://herwig.hepforge.org/"; 57 license = lib.licenses.gpl3Only; 58 maintainers = with lib.maintainers; [ veprbl ]; 59 platforms = lib.platforms.unix; 60 badPlatforms = [ 61 # ../include/ThePEG/Config/std.h:101:12: error: no member named 'mem_fun' in namespace 'std'; did you mean 'mem_fn'? 62 lib.systems.inspect.patterns.isDarwin 63 ]; 64 }; 65}