helm-secrets: Fix CLI compatibility with Helm v4

While introducing support for Helm v4, helm-secrets has split
up into multiple plugins [1], with the the v4-compatible
manifest residing at "plugins/helm-secrets-cli/plugin.yaml"
[2] in the source repo, while the manifest in the root
directory [3] is compatible to Helm v3, not v4.

This patch is minimally invasive and only restores the CLI;
getter and post-renderer do not become available through this.

[1]: https://github.com/jkroepke/helm-secrets/wiki/Installation#helm-4
[2]: https://github.com/jkroepke/helm-secrets/blob/main/plugins/helm-secrets-cli/plugin.yaml
[3]: https://github.com/jkroepke/helm-secrets/blob/main/plugin.yaml

Fixes: https://github.com/NixOS/nixpkgs/issues/536239
This commit is contained in:
Simon Leiner
2026-07-15 13:34:20 +02:00
parent 2232ce6058
commit 5b3fb02758

View File

@@ -40,8 +40,8 @@ stdenv.mkDerivation rec {
runHook preInstall
install -dm755 $out/helm-secrets $out/helm-secrets/scripts
install -m644 -Dt $out/helm-secrets plugin.yaml
cp -r scripts/* $out/helm-secrets/scripts
install -m644 -Dt $out/helm-secrets plugins/helm-secrets-cli/plugin.yaml
cp -r plugins/helm-secrets-cli/scripts/* $out/helm-secrets/scripts
wrapProgram $out/helm-secrets/scripts/run.sh \
--prefix PATH : ${
lib.makeBinPath [