1 { symlinkJoin, lib, makeWrapper, writeText }:
8 extraMakeWrapperArgs ? ""
12 initialMakeWrapperArgs = [
15 pluginsDir = symlinkJoin {
16 name = "helm-plugins";
21 name = "helm-${lib.getVersion helm}";
23 # Remove the symlinks created by symlinkJoin which we need to perform
26 wrapProgram "$out/bin/helm" \
27 "--set" "HELM_PLUGINS" "${pluginsDir}" ${extraMakeWrapperArgs}
29 paths = [ helm pluginsDir ];
31 preferLocalBuild = true;
33 nativeBuildInputs = [ makeWrapper ];
40 # To prevent builds on hydra
42 # prefer wrapper over the package
43 priority = (helm.meta.priority or lib.meta.defaultPriority) - 1;
47 lib.makeOverridable wrapper