mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
26 lines
556 B
Nix
26 lines
556 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
{
|
||
|
options = {
|
||
|
appstream.enable = mkOption {
|
||
|
type = types.bool;
|
||
|
default = true;
|
||
|
description = ''
|
||
|
Whether to install files to support the
|
||
|
<link xlink:href="https://www.freedesktop.org/software/appstream/docs/index.html">AppStream metadata specification</link>.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf config.appstream.enable {
|
||
|
environment.pathsToLink = [
|
||
|
# per component metadata
|
||
|
"/share/metainfo"
|
||
|
# legacy path for above
|
||
|
"/share/appdata"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
}
|