From df35b20e048c77449f5db74936a83b7660c4b351 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 23 Jul 2024 21:40:28 +0800 Subject: [PATCH] wrapper-manager-fds/modules: add build.passthru --- .../modules/wrapper-manager/build.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subprojects/wrapper-manager-fds/modules/wrapper-manager/build.nix b/subprojects/wrapper-manager-fds/modules/wrapper-manager/build.nix index 6eed1de4..e49222ae 100644 --- a/subprojects/wrapper-manager-fds/modules/wrapper-manager/build.nix +++ b/subprojects/wrapper-manager-fds/modules/wrapper-manager/build.nix @@ -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 =