···2233let
44 platform =
55- if lib.elem stdenv.system lib.platforms.unix then "unix"
55+ if stdenv.hostPlatform.isUnix then "unix"
66 else throw "Unknown platform for NetHack: ${stdenv.system}";
77 unixHint =
88- if stdenv.isLinux then "linux"
99- else if stdenv.isDarwin then "macosx10.10"
88+ /**/ if stdenv.hostPlatform.isLinux then "linux"
99+ else if stdenv.hostPlatform.isDarwin then "macosx10.10"
1010 # We probably want something different for Darwin
1111 else "unix";
1212 userDir = "~/.config/nethack";