summary refs log tree commit diff
path: root/pkgs/games/nethack/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-09 18:40:51 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-03-12 18:55:41 -0400
commit94cbd141203ca5007bc56236e24eeceae42778aa (patch)
treede110c560686df99c7d7d5ccac60441a04936ab7 /pkgs/games/nethack/default.nix
parent59c656a42137e529cd77f7e42c559cef7c0e33f3 (diff)
downloadnixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar.gz
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar.bz2
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar.lz
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar.xz
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.tar.zst
nixpkgs-94cbd141203ca5007bc56236e24eeceae42778aa.zip
nethack: Fix platform logic
Diffstat (limited to 'pkgs/games/nethack/default.nix')
-rw-r--r--pkgs/games/nethack/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix
index d9ab3ee833b..b67a79aa3fe 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";