kubernetes-helm-wrapped: fix the wrapper

placeholder out doesn't return a full store path so fixing the derivation
This commit is contained in:
Matthieu Coudron 2021-08-02 23:26:41 +02:00 committed by Matthieu Coudron
parent e03daba08c
commit 78090fd990

View File

@ -10,8 +10,6 @@ let
let
initialMakeWrapperArgs = [
"${helm}/bin/helm" "${placeholder "out"}/bin/helm"
"--argv0" "$0" "--set" "HELM_PLUGINS" "${pluginsDir}"
];
pluginsDir = symlinkJoin {
@ -26,7 +24,8 @@ in
# extra actions upon
postBuild = ''
rm $out/bin/helm
makeWrapper ${lib.escapeShellArgs initialMakeWrapperArgs} ${extraMakeWrapperArgs}
makeWrapper "${helm}/bin/helm" "$out/bin/helm" "--argv0" "$0" \
"--set" "HELM_PLUGINS" "${pluginsDir}" ${extraMakeWrapperArgs}
'';
paths = [ helm pluginsDir ];