mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-30 22:57:58 +00:00
wrapper-manager-fds/modules: add build.passthru
This commit is contained in:
parent
46aa501193
commit
19fc93419a
@ -20,6 +20,15 @@
|
|||||||
default = "";
|
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 {
|
toplevel = lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
@ -44,6 +53,7 @@
|
|||||||
mkDesktopEntries (lib.attrValues config.xdg.desktopEntries);
|
mkDesktopEntries (lib.attrValues config.xdg.desktopEntries);
|
||||||
in
|
in
|
||||||
pkgs.symlinkJoin {
|
pkgs.symlinkJoin {
|
||||||
|
passthru = config.build.extraPassthru;
|
||||||
name = "wrapper-manager-fds-wrapped-package";
|
name = "wrapper-manager-fds-wrapped-package";
|
||||||
paths = desktopEntries ++ config.basePackages;
|
paths = desktopEntries ++ config.basePackages;
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
|
Loading…
Reference in New Issue
Block a user