nethack: Fix platform logic
This commit is contained in:
parent
59c656a421
commit
94cbd14120
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue