mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 06:31:20 +00:00
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}"
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user