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
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";