readest: note null package where Readest is unavailable

nixpkgs only builds Readest for Linux, so on Darwin the module needs
package = null to evaluate. Say so in the package option, as
programs.ghostty does.
This commit is contained in:
Adam Curtis
2026-10-22 17:44:34 -07:00
committed by Austin Horstman
parent fed1640a82
commit fdb7862b3d

View File

@@ -24,7 +24,10 @@ in
meta.maintainers = [ lib.maintainers.nyxar77 ];
options.programs.readest = {
enable = mkEnableOption "Readest";
package = mkPackageOption pkgs "readest" { nullable = true; };
package = mkPackageOption pkgs "readest" {
nullable = true;
extraDescription = "Set programs.readest.package to null on platforms where readest is not available";
};
settings = mkOption {
inherit (jsonFormat) type;