02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
25 lines
539 B
Nix
25 lines
539 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
{
|
|
options = {
|
|
appstream.enable = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = lib.mdDoc ''
|
|
Whether to install files to support the
|
|
[AppStream metadata specification](https://www.freedesktop.org/software/appstream/docs/index.html).
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf config.appstream.enable {
|
|
environment.pathsToLink = [
|
|
# per component metadata
|
|
"/share/metainfo"
|
|
# legacy path for above
|
|
"/share/appdata"
|
|
];
|
|
};
|
|
|
|
}
|