22 stdenv.mkDerivation rec {
27 url = "https://www.hepforge.org/archive/rivet/Rivet-${version}.tar.bz2";
28 hash = "sha256-ZaOzb0K/94LtJ2eTDmaeCbFAiZYF15cvyPd3hbSogsA=";
31 latex = texliveBasic.withPackages (
34 collection-fontsrecommended
62 propagatedBuildInputs = [
69 substituteInPlace configure \
70 --replace-fail 'if test $HEPMC_VERSION -le 310; then' 'if false; then'
71 substituteInPlace bin/rivet-build.in \
72 --replace-fail 'num_jobs=$(getconf _NPROCESSORS_ONLN)' 'num_jobs=''${NIX_BUILD_CORES:-$(getconf _NPROCESSORS_ONLN)}' \
73 --replace-fail 'which' '"${which}/bin/which"' \
74 --replace-fail 'mycxx=' 'mycxx=${stdenv.cc}/bin/${
75 if stdenv.cc.isClang or false then "clang++" else "g++"
77 --replace-fail 'mycxxflags="' "mycxxflags=\"$NIX_CFLAGS_COMPILE $NIX_CXXSTDLIB_COMPILE $NIX_CFLAGS_LINK "
81 substituteInPlace bin/make-plots \
82 --replace-fail '"which"' '"${which}/bin/which"' \
83 --replace-fail '"latex"' '"'$latex'/bin/latex"' \
84 --replace-fail '"dvips"' '"'$latex'/bin/dvips"' \
85 --replace-fail '"ps2pdf"' '"${ghostscript}/bin/ps2pdf"' \
86 --replace-fail '"ps2eps"' '"${ghostscript}/bin/ps2eps"' \
87 --replace-fail '"kpsewhich"' '"'$latex'/bin/kpsewhich"' \
88 --replace-fail '"convert"' '"${imagemagick.out}/bin/convert"'
89 substituteInPlace bin/rivet \
90 --replace-fail '"less"' '"${less}/bin/less"'
91 substituteInPlace bin/rivet-mkhtml-tex \
92 --replace-fail '"make-plots"' \"$out/bin/make-plots\" \
93 --replace-fail '"rivet-cmphistos"' \"$out/bin/rivet-cmphistos\" \
94 --replace-fail 'ch_cmd = [sys.executable, os.path.join(os.path.dirname(__file__),' 'ch_cmd = [('
98 "--with-fastjet=${fastjet}"
100 "--with-hepmc3=${hepmc3}"
101 "--with-highfive=${highfive}"
104 enableParallelBuilding = true;
107 for prog in "$out"/bin/*; do
108 wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
113 description = "Framework for comparison of experimental measurements from high-energy particle colliders to theory predictions";
114 license = licenses.gpl3;
115 homepage = "https://rivet.hepforge.org";
116 platforms = platforms.unix;
117 maintainers = with maintainers; [ veprbl ];