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:
parent
cbf30d2bc9
commit
ec980c7b1e
|
@ -38,14 +38,14 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
hplipArch = hplipPlatforms."${stdenv.system}"
|
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" ];
|
pluginArches = [ "x86_32" "x86_64" ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
assert withPlugin -> builtins.elem hplipArch pluginArches
|
assert withPlugin -> builtins.elem hplipArch pluginArches
|
||||||
|| abort "HPLIP plugin not supported on ${stdenv.system}";
|
|| throw "HPLIP plugin not supported on ${stdenv.system}";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name src;
|
inherit name src;
|
||||||
|
|
Loading…
Reference in a new issue