git.iko.soy/typeable/nixpkgs
on master help sign in
helmfile: Stop prefixing PATH with kubernetes-helm

So helmfile will work with helm plugins wrapped by pkgs.wrapHelm: ``` { inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; helm = pkgs.wrapHelm pkgs.kubernetes-helm { plugins = with pkgs.kubernetes-helmPlugins; [ helm-diff helm-secrets ]; }; in { devShell = pkgs.mkShell { nativeBuildInputs = [ helm pkgs.helmfile ]; }; }); } ```

commit056d880f90dc1e1a89ea5f349b6408337397650d authorZhong Jianxin <azuwis@gmail.com> dateSat 6 Nov 2021, 11:35 (5 years ago) parent4789953
1 file changed+1−8
pkgs/applications/networking/cluster/helmfile/default.nix+1−8
pkgs/applications/networking/cluster/helmfile/default.nix+1−8
@@ -1,4 +1,4 @@
1−{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
1+{ lib, buildGoModule, fetchFromGitHub }:
22
33buildGoModule rec {
44 pname = "helmfile";
@@ -15,17 +15,10 @@ buildGoModule rec {
1515
1616 doCheck = false;
1717
18− nativeBuildInputs = [ makeWrapper ];
19−
2018 subPackages = [ "." ];
2119
2220 ldflags = [ "-s" "-w" "-X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
2321
24− postInstall = ''
25− wrapProgram $out/bin/helmfile \
26− --prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
27− '';
28−
2922 meta = {
3023 description = "Deploy Kubernetes Helm charts";
3124 homepage = "https://github.com/roboll/helmfile";