1 { stdenv, lib, buildEnv, makeWrapper, yquake2 }:
11 paths = [ yquake2 ] ++ games;
14 in stdenv.mkDerivation {
15 name = "${name}-${lib.getVersion yquake2}";
17 nativeBuildInputs = [ makeWrapper ];
21 '' + lib.concatMapStringsSep "\n" (game: ''
22 makeWrapper ${env}/bin/yquake2 $out/bin/yquake2-${game.title} \
23 --add-flags "+set game ${game.id}"
24 makeWrapper ${env}/bin/yq2ded $out/bin/yq2ded-${game.title} \
25 --add-flags "+set game ${game.id}"