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:
@@ -10,7 +10,7 @@ let xorgFullVer = (builtins.parseDrvName xorg.xorgserver.name).version;
|
||||
xorgVer = lib.concatStringsSep "." (lib.take 2 (lib.splitString "." xorgFullVer));
|
||||
x64 = if stdenv.system == "x86_64-linux" then true
|
||||
else if stdenv.system == "i686-linux" then false
|
||||
else abort "Parallels Tools for Linux only support {x86-64,i686}-linux targets";
|
||||
else throw "Parallels Tools for Linux only support {x86-64,i686}-linux targets";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "${prl_major}.2.1-41615";
|
||||
|
||||
Reference in New Issue
Block a user