1 { stdenv, lib, buildEnv, makeWrapper, yquake2, copyDesktopItems, makeDesktopItem }:
11 paths = [ yquake2 ] ++ games;
17 version = lib.getVersion yquake2;
19 nativeBuildInputs = [ makeWrapper copyDesktopItems ];
26 '' + lib.concatMapStringsSep "\n" (game: ''
27 makeWrapper ${env}/bin/yquake2 $out/bin/yquake2-${game.title} \
28 --add-flags "+set game ${game.id}"
29 makeWrapper ${env}/bin/yq2ded $out/bin/yq2ded-${game.title} \
30 --add-flags "+set game ${game.id}"
32 install -Dm644 ${yquake2}/share/pixmaps/yamagi-quake2.png $out/share/pixmaps/yamagi-quake2.png;
37 (game: makeDesktopItem ({
40 icon = "yamagi-quake2";
41 desktopName = game.id;
42 comment = game.description;
43 categories = [ "Game" "Shooter" ];