diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-03-09 18:40:51 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-03-12 18:55:41 -0400 |
commit | 94cbd141203ca5007bc56236e24eeceae42778aa (patch) | |
tree | de110c560686df99c7d7d5ccac60441a04936ab7 /pkgs/games/nethack | |
parent | 59c656a42137e529cd77f7e42c559cef7c0e33f3 (diff) | |
download | nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar.gz nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar.bz2 nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar.lz nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar.xz nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.tar.zst nixlib-94cbd141203ca5007bc56236e24eeceae42778aa.zip |
nethack: Fix platform logic
Diffstat (limited to 'pkgs/games/nethack')
-rw-r--r-- | pkgs/games/nethack/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix index d9ab3ee833b2..b67a79aa3fe7 100644 --- a/pkgs/games/nethack/default.nix +++ b/pkgs/games/nethack/default.nix @@ -2,11 +2,11 @@ let platform = - if lib.elem stdenv.system lib.platforms.unix then "unix" + if stdenv.hostPlatform.isUnix then "unix" else throw "Unknown platform for NetHack: ${stdenv.system}"; unixHint = - if stdenv.isLinux then "linux" - else if stdenv.isDarwin then "macosx10.10" + /**/ if stdenv.hostPlatform.isLinux then "linux" + else if stdenv.hostPlatform.isDarwin then "macosx10.10" # We probably want something different for Darwin else "unix"; userDir = "~/.config/nethack"; |