hplip: fix evaluation errors on unsupported platforms

Evidently, `abort` is unrecoverable, and `throw` should be used instead.
Only partially tested, as I don't have enough RAM right now for it.
This commit is contained in:
Vladimír Čunát 2015-11-23 15:42:22 +01:00
parent cbf30d2bc9
commit ec980c7b1e

View file

@ -38,14 +38,14 @@ let
};
hplipArch = hplipPlatforms."${stdenv.system}"
or (abort "HPLIP not supported on ${stdenv.system}");
or (throw "HPLIP not supported on ${stdenv.system}");
pluginArches = [ "x86_32" "x86_64" ];
in
assert withPlugin -> builtins.elem hplipArch pluginArches
|| abort "HPLIP plugin not supported on ${stdenv.system}";
|| throw "HPLIP plugin not supported on ${stdenv.system}";
stdenv.mkDerivation {
inherit name src;