3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/fluxctl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
931 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2019-07-27 20:22:23 +01:00
buildGoModule rec {
pname = "fluxctl";
2021-12-06 22:38:29 +00:00
version = "1.24.3";
2019-07-27 20:22:23 +01:00
src = fetchFromGitHub {
owner = "weaveworks";
repo = "flux";
rev = version;
2021-12-06 22:38:29 +00:00
sha256 = "sha256-i86WwSR14hxaXWMesvG2mG8nqXd97M3TekK2FLTLL+Y=";
2019-07-27 20:22:23 +01:00
};
2021-12-06 22:38:29 +00:00
vendorSha256 = "sha256-Fw3/SMO66eExlDNcIaHM+G2kB4zb1Cih7kp8xfel/iY=";
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
doCheck = false;
2019-07-27 20:22:23 +01:00
subPackages = [ "cmd/fluxctl" ];
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-04-05 01:06:18 +01:00
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
'';
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;
maintainers = with maintainers; [ Gonzih Br1ght0ne ];
2019-07-27 20:22:23 +01:00
};
}