17 url = "https://www.hepforge.org/archive/agile/Sacrifice-1.0.0.tar.gz";
18 sha256 = "10bvpq63kmszy1habydwncm0j1dgvam0fkrmvkgbkvf804dcjp6g";
27 nativeBuildInputs = [ makeWrapper ];
36 substituteInPlace configure --replace HAVE_LCG=yes HAVE_LCG=no
38 + lib.optionalString stdenv.hostPlatform.isDarwin ''
39 substituteInPlace configure --replace LIB_SUFFIX=\"so\" LIB_SUFFIX=\"dylib\"
43 "--with-HepMC=${hepmc2}"
44 "--with-pythia=${pythia}"
48 if stdenv.hostPlatform.isDarwin then
50 install_name_tool -add_rpath ${pythia}/lib "$out"/bin/run-pythia
54 wrapProgram $out/bin/run-pythia \
55 --prefix LD_LIBRARY_PATH : "${pythia}/lib"
58 enableParallelBuilding = true;
61 description = "Standalone contribution to AGILe for steering Pythia 8";
62 mainProgram = "run-pythia";
63 license = lib.licenses.gpl2;
64 homepage = "https://agile.hepforge.org/trac/wiki/Sacrifice";
65 platforms = lib.platforms.unix;
66 maintainers = with lib.maintainers; [ veprbl ];
67 # never built on aarch64-darwin since first introduction in nixpkgs
68 broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;