2021-01-25 11:26:54 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2019-07-27 22:22:23 +03:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fluxctl";
|
2022-06-26 01:32:31 +03:00
|
|
|
version = "1.25.2";
|
2019-07-27 22:22:23 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = "flux";
|
|
|
|
rev = version;
|
2022-06-26 01:32:31 +03:00
|
|
|
sha256 = "sha256-OZLTT54InDPF+m5e4xtuAL311wCD16Ne/T0PbgiSaN4=";
|
2019-07-27 22:22:23 +03:00
|
|
|
};
|
|
|
|
|
2022-06-26 01:32:31 +03:00
|
|
|
vendorSha256 = "sha256-Q9THG76/B/gdfhf5wLxVXoAAzXeOjaaAyYaGKy9LeF0=";
|
2019-07-27 22:22:23 +03:00
|
|
|
|
2020-08-10 12:20:00 +03:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2019-07-27 22:22:23 +03:00
|
|
|
|
2020-08-04 03:26:27 +03:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-27 22:22:23 +03:00
|
|
|
subPackages = [ "cmd/fluxctl" ];
|
|
|
|
|
2021-08-26 09:45:51 +03:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-04-05 03:06:18 +03:00
|
|
|
|
2020-08-10 12:20:00 +03:00
|
|
|
postInstall = ''
|
|
|
|
for shell in bash fish zsh; do
|
|
|
|
$out/bin/fluxctl completion $shell > fluxctl.$shell
|
|
|
|
installShellCompletion fluxctl.$shell
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2019-07-27 22:22:23 +03:00
|
|
|
description = "CLI client for Flux, the GitOps Kubernetes operator";
|
2019-12-03 14:51:28 +03:00
|
|
|
homepage = "https://github.com/fluxcd/flux";
|
2019-07-27 22:22:23 +03:00
|
|
|
license = licenses.asl20;
|
2020-11-17 14:02:06 +03:00
|
|
|
maintainers = with maintainers; [ Gonzih Br1ght0ne ];
|
2019-07-27 22:22:23 +03:00
|
|
|
};
|
2020-07-31 06:58:04 +03:00
|
|
|
}
|