diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix b/nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix new file mode 100644 index 000000000000..1318ff003de3 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/cluster/helmfile/default.nix @@ -0,0 +1,39 @@ +{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm, ... }: + +let version = "0.106.3"; in + +buildGoModule { + pname = "helmfile"; + inherit version; + + src = fetchFromGitHub { + owner = "roboll"; + repo = "helmfile"; + rev = "v${version}"; + sha256 = "0pwkkgdcj9vx6nk574iaqwn074qfpgqd1c44d3kr3xdbac89yfyf"; + }; + + goPackagePath = "github.com/roboll/helmfile"; + + modSha256 = "1yv2b44qac0rms66v0qg13wsga0di6hwxa4dh2l0b1xvaf75ysay"; + + nativeBuildInputs = [ makeWrapper ]; + + buildFlagsArray = '' + -ldflags= + -X main.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"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pneumaticat yurrriq ]; + platforms = lib.platforms.unix; + }; +} |