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

29 lines
719 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-07-27 19:22:23 +00:00
buildGoModule rec {
pname = "fluxctl";
2020-07-12 05:17:21 +00:00
version = "1.20.0";
2019-07-27 19:22:23 +00:00
src = fetchFromGitHub {
owner = "weaveworks";
repo = "flux";
rev = version;
2020-07-12 05:17:21 +00:00
sha256 = "0bfib5pg2cbip6fw45slb0h3a7qpikxsfpclzr86bcnjq60pshl1";
2019-07-27 19:22:23 +00:00
};
2020-07-12 05:17:21 +00:00
vendorSha256 = "0a5sv11pb2i6r0ffwaiqdhc0m7gz679yfmqw6ix9imk4ybhf4jp9";
2019-07-27 19:22:23 +00:00
doCheck = false;
2019-07-27 19:22:23 +00:00
subPackages = [ "cmd/fluxctl" ];
2020-04-05 00:06:18 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-07-27 19:22:23 +00:00
meta = with stdenv.lib; {
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 19:22:23 +00:00
license = licenses.asl20;
2019-12-03 11:51:46 +00:00
maintainers = with maintainers; [ Gonzih filalex77 ];
2019-07-27 19:22:23 +00:00
};
}