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
@@ -9,7 +9,7 @@ let
|
||||
"macosx"
|
||||
else if stdenv.system == "aarch64-linux" then
|
||||
"linux-arm"
|
||||
else abort "Platform ${stdenv.system} not yet supported.";
|
||||
else throw "Platform ${stdenv.system} not yet supported.";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1skx2pfnic7pyss7c69qb7kg2xvflpxf112xkf9awk516dw1w4h7";
|
||||
}
|
||||
else
|
||||
abort "Saleae Logic software requires i686-linux or x86_64-linux";
|
||||
throw "Saleae Logic software requires i686-linux or x86_64-linux";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "saleae-logic";
|
||||
|
||||
Reference in New Issue
Block a user