git.iko.soy/typeable/nixpkgs
on master help sign in
nethack: Fix platform logic
commit94cbd141203ca5007bc56236e24eeceae42778aa authorJohn Ericson <John.Ericson@Obsidian.Systems> dateFri 9 Mar 2018, 18:40 (9 years ago) parent59c656a
1 file changed+3−3
pkgs/games/nethack/default.nix+3−3
pkgs/games/nethack/default.nix+3−3
@@ -2,11 +2,11 @@
22
33let
44 platform =
5− if lib.elem stdenv.system lib.platforms.unix then "unix"
5+ if stdenv.hostPlatform.isUnix then "unix"
66 else throw "Unknown platform for NetHack: ${stdenv.system}";
77 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"
1010 # We probably want something different for Darwin
1111 else "unix";
1212 userDir = "~/.config/nethack";