2024-08-15 16:27:56 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2022-01-03 20:51:26 +00:00
|
|
|
let
|
2024-08-15 10:22:18 +00:00
|
|
|
cfg = config.services.gnome.tinysparql;
|
2022-01-03 20:51:26 +00:00
|
|
|
in
|
2014-04-09 13:57:02 +00:00
|
|
|
{
|
2020-04-02 00:16:24 +00:00
|
|
|
meta = {
|
2024-04-30 16:57:01 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
2020-04-02 00:16:24 +00:00
|
|
|
};
|
|
|
|
|
2024-08-13 13:40:01 +00:00
|
|
|
imports = [
|
2024-08-15 16:27:56 +00:00
|
|
|
(lib.mkRemovedOptionModule
|
|
|
|
[
|
|
|
|
"services"
|
|
|
|
"gnome"
|
|
|
|
"tracker"
|
|
|
|
"subcommandPackages"
|
|
|
|
]
|
|
|
|
''
|
|
|
|
This option is broken since 3.7 and since 3.8 tracker (tinysparql) no longer expect
|
|
|
|
CLI to be extended by external projects, note that tracker-miners (localsearch) now
|
|
|
|
provides its own CLI tool.
|
|
|
|
''
|
|
|
|
)
|
|
|
|
(lib.mkRenamedOptionModule
|
|
|
|
[
|
|
|
|
"services"
|
|
|
|
"gnome"
|
|
|
|
"tracker"
|
|
|
|
"enable"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
"services"
|
|
|
|
"gnome"
|
|
|
|
"tinysparql"
|
|
|
|
"enable"
|
|
|
|
]
|
|
|
|
)
|
2024-08-13 13:40:01 +00:00
|
|
|
];
|
|
|
|
|
2014-04-09 13:57:02 +00:00
|
|
|
options = {
|
2024-08-15 10:22:18 +00:00
|
|
|
services.gnome.tinysparql = {
|
2024-04-30 16:57:01 +00:00
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
2014-04-09 13:57:02 +00:00
|
|
|
default = false;
|
|
|
|
description = ''
|
2024-08-15 10:22:18 +00:00
|
|
|
Whether to enable TinySPARQL services, a search engine,
|
2014-04-09 13:57:02 +00:00
|
|
|
search tool and metadata storage system.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-30 16:57:01 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-09-05 12:26:23 +00:00
|
|
|
environment.systemPackages = [ pkgs.tinysparql ];
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2024-09-05 12:26:23 +00:00
|
|
|
services.dbus.packages = [ pkgs.tinysparql ];
|
2014-04-09 13:57:02 +00:00
|
|
|
|
2024-09-05 12:26:23 +00:00
|
|
|
systemd.packages = [ pkgs.tinysparql ];
|
2014-04-09 13:57:02 +00:00
|
|
|
};
|
|
|
|
}
|