mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
37 lines
940 B
Nix
37 lines
940 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, kubernetes-helm }:
|
|
|
|
buildGoModule rec {
|
|
pname = "helmfile";
|
|
version = "0.141.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "roboll";
|
|
repo = "helmfile";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UwjV3xgnZa0Emzw4FP/+gHh1ES6MTihrrlGKUBH6O9Q=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-HKHMeDnIDmQ7AjuS2lYCMphTHGD1JgQuBYDJe2+PEk4=";
|
|
|
|
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";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pneumaticat yurrriq ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|