14 extraMakeWrapperArgs ? "",
18 initialMakeWrapperArgs = [
21 pluginsDir = symlinkJoin {
22 name = "helm-plugins";
27 name = "helm-${lib.getVersion helm}";
29 # Remove the symlinks created by symlinkJoin which we need to perform
32 wrapProgram "$out/bin/helm" \
33 "--set" "HELM_PLUGINS" "${pluginsDir}" ${extraMakeWrapperArgs}
40 preferLocalBuild = true;
42 nativeBuildInputs = [ makeWrapper ];
49 # To prevent builds on hydra
51 # prefer wrapper over the package
52 priority = (helm.meta.priority or lib.meta.defaultPriority) - 1;
56 lib.makeOverridable wrapper