···23let
4 platform =
5- if lib.elem stdenv.system lib.platforms.unix then "unix"
6 else throw "Unknown platform for NetHack: ${stdenv.system}";
7 unixHint =
8- if stdenv.isLinux then "linux"
9- else if stdenv.isDarwin then "macosx10.10"
10 # We probably want something different for Darwin
11 else "unix";
12 userDir = "~/.config/nethack";
···23let
4 platform =
5+ if stdenv.hostPlatform.isUnix then "unix"
6 else throw "Unknown platform for NetHack: ${stdenv.system}";
7 unixHint =
8+ /**/ if stdenv.hostPlatform.isLinux then "linux"
9+ else if stdenv.hostPlatform.isDarwin then "macosx10.10"
10 # We probably want something different for Darwin
11 else "unix";
12 userDir = "~/.config/nethack";