l 2 games: add vdoom{1,2} to pkgs
This commit is contained in:
parent
0c84c2bd4d
commit
ddf04562b2
@ -2,12 +2,16 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
mainUser = config.users.extraUsers.mainUser;
|
mainUser = config.users.extraUsers.mainUser;
|
||||||
|
vdoom = pkgs.writeDash "vdoom" ''
|
||||||
|
${pkgs.zandronum}/bin/zandronum \
|
||||||
|
-fov 120 \
|
||||||
|
"$@"
|
||||||
|
'';
|
||||||
doom = pkgs.writeDash "doom" ''
|
doom = pkgs.writeDash "doom" ''
|
||||||
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
${pkgs.zandronum}/bin/zandronum \
|
${vdoom} \
|
||||||
-file $DOOM_DIR/lib/brutalv20.pk3 \
|
-file $DOOM_DIR/lib/brutalv20.pk3 \
|
||||||
-file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \
|
-file $DOOM_DIR/lib/RebotStarcraftMarines.pk3 \
|
||||||
-fov 120 \
|
|
||||||
"$@"
|
"$@"
|
||||||
'';
|
'';
|
||||||
doom1 = pkgs.writeDashBin "doom1" ''
|
doom1 = pkgs.writeDashBin "doom1" ''
|
||||||
@ -18,12 +22,22 @@ let
|
|||||||
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
${doom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
|
${doom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
|
||||||
'';
|
'';
|
||||||
|
vdoom1 = pkgs.writeDashBin "vdoom1" ''
|
||||||
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
|
${vdoom} -iwad $DOOM_DIR/wads/stock/doom.wad "$@"
|
||||||
|
'';
|
||||||
|
vdoom2 = pkgs.writeDashBin "vdoom2" ''
|
||||||
|
DOOM_DIR=''${DOOM_DIR:-~/doom/}
|
||||||
|
${vdoom} -iwad $DOOM_DIR/wads/stock/doom2.wad "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dwarf_fortress
|
dwarf_fortress
|
||||||
doom1
|
doom1
|
||||||
doom2
|
doom2
|
||||||
|
vdoom1
|
||||||
|
vdoom2
|
||||||
];
|
];
|
||||||
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
|
Loading…
Reference in New Issue
Block a user