2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-07-27 20:22:23 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fluxctl";
|
2020-04-05 01:06:18 +01:00
|
|
|
version = "1.19.0";
|
2019-07-27 20:22:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = "flux";
|
|
|
|
rev = version;
|
2020-04-05 01:06:18 +01:00
|
|
|
sha256 = "1w6ndp0nrpps6pkxnq38hikbnzwahi6j9gn8l0bxd0qkf7cjc5w0";
|
2019-07-27 20:22:23 +01:00
|
|
|
};
|
|
|
|
|
2020-04-05 01:06:18 +01:00
|
|
|
modSha256 = "0zwq7n1lggj27j5yxgfplbaccw5fhbm7vm0sja839r1jamrn3ips";
|
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}" ];
|
|
|
|
|
2019-07-27 20:22:23 +01: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 20:22:23 +01:00
|
|
|
license = licenses.asl20;
|
2019-12-03 11:51:46 +00:00
|
|
|
maintainers = with maintainers; [ Gonzih filalex77 ];
|
2019-07-27 20:22:23 +01:00
|
|
|
};
|
|
|
|
}
|