Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nethack: Fix platform logic

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