Merge pull request #32365 from vcunat/p/check-meta

check meta, treewide
This commit is contained in:
Graham Christensen
2017-12-12 18:55:23 -05:00
committed by GitHub
22 changed files with 42 additions and 30 deletions

View File

@@ -16,7 +16,7 @@ let drv = stdenv.mkDerivation rec {
sha256 = "1768f02i3dxdbxn8n29d522h8v0mkgnhpb8ixzq5p54vwjmfl6md";
}
else
abort "unsupported system: ${stdenv.system}";
throw "unsupported system: ${stdenv.system}";
nativeBuildInputs = [ file ];

View File

@@ -44,7 +44,7 @@ assert stdenv.system == "i686-linux"
assert swingSupport -> xorg != null;
let
abortArch = abort "jdk requires i686-linux, x86_64-linux, aarch64-linux or armv7l-linux";
abortArch = throw "Unsupported system: ${stdenv.system}";
/**
* The JRE libraries are in directories that depend on the CPU.

View File

@@ -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 ];

View File

@@ -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 {

View File

@@ -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";