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