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:
@@ -6,7 +6,7 @@ let
|
||||
self = rec {
|
||||
steamArch = if pkgs.stdenv.system == "x86_64-linux" then "amd64"
|
||||
else if pkgs.stdenv.system == "i686-linux" then "i386"
|
||||
else abort "Unsupported platform";
|
||||
else throw "Unsupported platform: ${pkgs.stdenv.system}";
|
||||
|
||||
steam-runtime = callPackage ./runtime.nix { };
|
||||
steam-runtime-wrapped = callPackage ./runtime-wrapped.nix { };
|
||||
|
||||
Reference in New Issue
Block a user