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.
This commit is contained in:
Jan Düpmeier
2026-07-08 20:20:40 -04:00
committed by Ihar Hrachyshka
parent 9575138579
commit e9d79fb37d
+4 -1
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