about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorZhong Jianxin <azuwis@gmail.com>2021-11-06 11:35:28 +0800
committerZhong Jianxin <azuwis@gmail.com>2021-11-07 19:53:32 +0800
commit056d880f90dc1e1a89ea5f349b6408337397650d (patch)
treef8a8068964df2e946ff755a9a55981cd184d3f65 /pkgs
parent4789953e5c1ef6d10e3ff437e5b7ab8eed526942 (diff)
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
        ];
      };
    });
}
```
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/cluster/helmfile/default.nix9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkgs/applications/networking/cluster/helmfile/default.nix b/pkgs/applications/networking/cluster/helmfile/default.nix
index a802ce67941b3..d24dff6fb8a9a 100644
--- a/pkgs/applications/networking/cluster/helmfile/default.nix
+++ b/pkgs/applications/networking/cluster/helmfile/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "helmfile";
@@ -15,17 +15,10 @@ buildGoModule rec {
 
   doCheck = false;
 
-  nativeBuildInputs = [ makeWrapper ];
-
   subPackages = [ "." ];
 
   ldflags = [ "-s" "-w" "-X github.com/roboll/helmfile/pkg/app/version.Version=${version}" ];
 
-  postInstall = ''
-    wrapProgram $out/bin/helmfile \
-      --prefix PATH : ${lib.makeBinPath [ kubernetes-helm ]}
-  '';
-
   meta = {
     description = "Deploy Kubernetes Helm charts";
     homepage = "https://github.com/roboll/helmfile";