nethack: Fix platform logic

This commit is contained in:
John Ericson 2018-03-09 18:40:51 -05:00
parent 59c656a421
commit 94cbd14120

View File

@ -2,11 +2,11 @@
let let
platform = 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}"; else throw "Unknown platform for NetHack: ${stdenv.system}";
unixHint = unixHint =
if stdenv.isLinux then "linux" /**/ if stdenv.hostPlatform.isLinux then "linux"
else if stdenv.isDarwin then "macosx10.10" else if stdenv.hostPlatform.isDarwin then "macosx10.10"
# We probably want something different for Darwin # We probably want something different for Darwin
else "unix"; else "unix";
userDir = "~/.config/nethack"; userDir = "~/.config/nethack";