summary refs log tree commit diff
path: root/pkgs/os-specific/bsd
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-29 14:27:26 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-29 14:27:26 -0500
commit0be5637139970d5ae6aef1999769b600765a95f6 (patch)
treefae0c32e88fd10834e452bf2e28ae924500da489 /pkgs/os-specific/bsd
parent5f419f3df7f71b9dd88e513fcdd1303a5d5b99dd (diff)
downloadnixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar.gz
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar.bz2
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar.lz
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar.xz
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.tar.zst
nixpkgs-0be5637139970d5ae6aef1999769b600765a95f6.zip
netbsd.games: disable more games on darwin
Diffstat (limited to 'pkgs/os-specific/bsd')
-rw-r--r--pkgs/os-specific/bsd/netbsd/default.nix33
1 files changed, 20 insertions, 13 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix
index 343b61bab38..ecd09eaff80 100644
--- a/pkgs/os-specific/bsd/netbsd/default.nix
+++ b/pkgs/os-specific/bsd/netbsd/default.nix
@@ -381,19 +381,26 @@ in rec {
       # to build but need to look at how to implement stuff in
       # Linux. macOS is missing gettime. TODO try to get these
       # working.
-      substituteInPlace Makefile \
-        ${lib.optionalString stdenv.isDarwin "--replace adventure ''"} \
-        --replace atc "" \
-        --replace boggle "" \
-        --replace dm "" \
-        --replace fortune "" \
-        --replace hunt "" \
-        --replace larn "" \
-        --replace phantasia "" \
-        --replace rogue "" \
-        --replace sail "" \
-        --replace trek "" \
-        --replace dab ""
+      disableGame() {
+        substituteInPlace Makefile --replace $1 ""
+      }
+
+      disableGame atc
+      disableGame boggle
+      disableGame dm
+      disableGame fortune
+      disableGame hunt
+      disableGame larn
+      disableGame phantasia
+      disableGame rogue
+      disableGame sail
+      disableGame trek
+      disableGame dab
+      ${lib.optionalString stdenv.isDarwin "disableGame adventure"}
+      ${lib.optionalString stdenv.isDarwin "disableGame factor"}
+      ${lib.optionalString stdenv.isDarwin "disableGame gomoku"}
+      ${lib.optionalString stdenv.isDarwin "disableGame mille"}
+
       substituteInPlace Makefile.inc \
         --replace 2555 555 \
         --replace 2550 550