hplipWithPlugin: remove assert

This assert is already handled by `meta.platforms`, which can be better
caught by CI than an `assert`. Also set `meta.platforms` to the earlier
defined `hplipPlatforms` for a single source of truth.
This commit is contained in:
Wolfgang Walther
2025-07-21 18:08:06 +02:00
parent f0c1ec255a
commit 715d372a0c
+1 -13
View File
@@ -72,12 +72,6 @@ let
in
assert
withPlugin
->
builtins.elem hplipArch pluginArches
|| throw "HPLIP plugin not supported on ${stdenv.hostPlatform.system}";
python3Packages.buildPythonApplication {
inherit pname version;
format = "other";
@@ -362,13 +356,7 @@ python3Packages.buildPythonApplication {
bsd2
gpl2Plus
];
platforms = [
"i686-linux"
"x86_64-linux"
"armv6l-linux"
"armv7l-linux"
"aarch64-linux"
];
platforms = lib.attrNames hplipPlatforms;
maintainers = with lib.maintainers; [ ttuegel ];
};
}