treewide platform checks: abort -> throw
They aren't meant to be critical (uncatchable) errors. Tested with nix-env + checkMeta: [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
let
|
||||
platform =
|
||||
if lib.elem stdenv.system lib.platforms.unix then "unix"
|
||||
else abort "Unknown platform for NetHack";
|
||||
else throw "Unknown platform for NetHack: ${stdenv.system}";
|
||||
unixHint =
|
||||
if stdenv.isLinux then "linux"
|
||||
else if stdenv.isDarwin then "macosx10.10"
|
||||
|
||||
Reference in New Issue
Block a user