diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-29 14:27:26 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-29 14:27:26 -0500 |
commit | 0be5637139970d5ae6aef1999769b600765a95f6 (patch) | |
tree | fae0c32e88fd10834e452bf2e28ae924500da489 | |
parent | 5f419f3df7f71b9dd88e513fcdd1303a5d5b99dd (diff) | |
download | nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar.gz nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar.bz2 nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar.lz nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar.xz nixlib-0be5637139970d5ae6aef1999769b600765a95f6.tar.zst nixlib-0be5637139970d5ae6aef1999769b600765a95f6.zip |
netbsd.games: disable more games on darwin
-rw-r--r-- | pkgs/os-specific/bsd/netbsd/default.nix | 33 |
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 343b61bab383..ecd09eaff807 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 |