umu-launcher: add attrs extraLibraries & extraPkgs (#375423)

This commit is contained in:
Austin Horstman
2025-01-25 00:26:20 -06:00
committed by GitHub
+10 -2
View File
@@ -2,13 +2,21 @@
buildFHSEnv,
lib,
umu-launcher-unwrapped,
extraPkgs ? pkgs: [ ],
extraLibraries ? pkgs: [ ],
}:
buildFHSEnv {
pname = "umu-launcher";
inherit (umu-launcher-unwrapped) version meta;
# Use umu-launcher-unwrapped from the package args, to simplify overriding
targetPkgs = _: [ umu-launcher-unwrapped ];
targetPkgs =
pkgs:
[
# Use umu-launcher-unwrapped from the package args, to support overriding
umu-launcher-unwrapped
]
++ extraPkgs pkgs;
multiPkgs = extraLibraries;
executableName = umu-launcher-unwrapped.meta.mainProgram;
runScript = lib.getExe umu-launcher-unwrapped;