nethack: Fix platform logic
This commit is contained in:
parent
59c656a421
commit
94cbd14120
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user