wrapper-manager-fds/modules: add build.passthru

This commit is contained in:
Gabriel Arazas 2024-07-23 21:40:28 +08:00
parent 517a5e6c61
commit df35b20e04
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -20,6 +20,15 @@
default = "";
};
extraPassthru = lib.mkOption {
type = with lib.types; attrsOf anything;
description = ''
Set of data to be passed through `passthru` of the resulting
derivation.
'';
default = { };
};
toplevel = lib.mkOption {
type = lib.types.package;
readOnly = true;
@ -44,6 +53,7 @@
mkDesktopEntries (lib.attrValues config.xdg.desktopEntries);
in
pkgs.symlinkJoin {
passthru = config.build.extraPassthru;
name = "wrapper-manager-fds-wrapped-package";
paths = desktopEntries ++ config.basePackages;
nativeBuildInputs =