nixpkgs/pkgs/applications/networking/cluster/fluxctl/default.nix

38 lines
956 B
Nix
Raw Normal View History

2020-08-10 02:20:00 -07:00
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
2019-07-27 12:22:23 -07:00
buildGoModule rec {
pname = "fluxctl";
2020-08-10 00:54:11 -07:00
version = "1.20.1";
2019-07-27 12:22:23 -07:00
src = fetchFromGitHub {
owner = "weaveworks";
repo = "flux";
rev = version;
2020-08-10 00:54:11 -07:00
sha256 = "1l514rf7rg05prq9548ygj6z284sy85ddzrwiiqr74vz4kilg3vb";
2019-07-27 12:22:23 -07:00
};
2020-08-10 00:54:11 -07:00
vendorSha256 = "00qm45vfz4afj8f9hikrlk96w0rdzxqq2azhzrnzfymyiwc6jk5c";
2019-07-27 12:22:23 -07:00
2020-08-10 02:20:00 -07:00
nativeBuildInputs = [ installShellFiles ];
2019-07-27 12:22:23 -07:00
doCheck = false;
2019-07-27 12:22:23 -07:00
subPackages = [ "cmd/fluxctl" ];
2020-04-04 17:06:18 -07:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2020-08-10 02:20:00 -07:00
postInstall = ''
for shell in bash fish zsh; do
$out/bin/fluxctl completion $shell > fluxctl.$shell
installShellCompletion fluxctl.$shell
done
'';
2019-07-27 12:22:23 -07:00
meta = with stdenv.lib; {
description = "CLI client for Flux, the GitOps Kubernetes operator";
2019-12-03 03:51:28 -08:00
homepage = "https://github.com/fluxcd/flux";
2019-07-27 12:22:23 -07:00
license = licenses.asl20;
2019-12-03 03:51:46 -08:00
maintainers = with maintainers; [ Gonzih filalex77 ];
2019-07-27 12:22:23 -07:00
};
}