podman-desktop: add extraPackages parameter

This commit adds a new parameter `extraPackages` to add extra packages
to the PATH.
Some podman-desktop extensions (e.g. Openshift Local) need extra tooling
to work.
This parameter allows to the extra tooling to the PATH.

(cherry picked from commit e9d79fb37d)
This commit is contained in:
Jan Düpmeier
2026-01-13 16:55:49 +01:00
committed by github-actions[bot]
parent 74b30c6e3a
commit 45b4e6369c

View File

@@ -17,6 +17,7 @@
gnugrep,
podman,
krunkit,
extraPackages ? [ ],
}:
let
@@ -122,7 +123,9 @@ stdenv.mkDerivation (finalAttrs: {
installPhase =
let
prefixPackages = lib.makeBinPath (
[ podman ] ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform krunkit) krunkit
[ podman ]
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform krunkit) krunkit
++ extraPackages
);
commonWrapperArgs = "--prefix PATH : ${prefixPackages}";
in