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:
committed by
Graham Christensen
parent
76bf375a16
commit
3a110ea3f9
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||
platform =
|
||||
if stdenv.isLinux then "linux"
|
||||
else if stdenv.isDarwin then "macosx"
|
||||
else abort "unrecognized platform";
|
||||
else throw "unrecognized system ${stdenv.system}";
|
||||
|
||||
buildInputs = [ premake4 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user