netbsd.games: disable more games on darwin

This commit is contained in:
Matthew Bauer
2018-04-29 14:27:26 -05:00
parent 5f419f3df7
commit 0be5637139
+20 -13
View File
@@ -381,19 +381,26 @@ in rec {
# to build but need to look at how to implement stuff in # to build but need to look at how to implement stuff in
# Linux. macOS is missing gettime. TODO try to get these # Linux. macOS is missing gettime. TODO try to get these
# working. # working.
substituteInPlace Makefile \ disableGame() {
${lib.optionalString stdenv.isDarwin "--replace adventure ''"} \ substituteInPlace Makefile --replace $1 ""
--replace atc "" \ }
--replace boggle "" \
--replace dm "" \ disableGame atc
--replace fortune "" \ disableGame boggle
--replace hunt "" \ disableGame dm
--replace larn "" \ disableGame fortune
--replace phantasia "" \ disableGame hunt
--replace rogue "" \ disableGame larn
--replace sail "" \ disableGame phantasia
--replace trek "" \ disableGame rogue
--replace dab "" 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 \ substituteInPlace Makefile.inc \
--replace 2555 555 \ --replace 2555 555 \
--replace 2550 550 --replace 2550 550