git.iko.soy/typeable/nixpkgs
on master help sign in
fluxcd: init at 0.5.0

This is flux v2. There is also fluxctl (flux v1). v1 is in maintenance mode, and it will be deprecated at some point, but some people may still depend on v1.

commite10a0ae16e6cd498258902490f06afbec77dcab0 authorJosé Luis Lafuente <jl@lafuente.me> dateWed 9 Dec 2020, 20:45 (6 years ago) parent2967936
2 files changed+45
pkgs/applications/networking/cluster/fluxcd/default.nix+43 pkgs/top-level/all-packages.nix+2
pkgs/applications/networking/cluster/fluxcd/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
2+
3+buildGoModule rec {
4+ pname = "fluxcd";
5+ version = "0.5.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "fluxcd";
9+ repo = "flux2";
10+ rev = "v${version}";
11+ sha256 = "125im8br7x8djd6zagvikpc02k55pxbd97rjj3g2frj9plbryh8n";
12+ };
13+
14+ vendorSha256 = "0f818a0z71nl061db93iqb87njx66vbrra1zh92warbx8djdsr7k";
15+
16+ nativeBuildInputs = [ installShellFiles ];
17+
18+ doCheck = false;
19+
20+ subPackages = [ "cmd/flux" ];
21+
22+ buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
23+
24+ postInstall = ''
25+ for shell in bash fish zsh; do
26+ $out/bin/flux completion $shell > flux.$shell
27+ installShellCompletion flux.$shell
28+ done
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ description = "Open and extensible continuous delivery solution for Kubernetes";
33+ longDescription = ''
34+ Flux is a tool for keeping Kubernetes clusters in sync
35+ with sources of configuration (like Git repositories), and automating
36+ updates to configuration when there is new code to deploy.
37+ '';
38+ homepage = "https://fluxcd.io";
39+ license = licenses.asl20;
40+ maintainers = with maintainers; [ jlesquembre ];
41+ platforms = platforms.unix;
42+ };
43+}
pkgs/top-level/all-packages.nix+2
@@ -22199,6 +22199,8 @@ in
2219922199
2220022200 fluxctl = callPackage ../applications/networking/cluster/fluxctl { };
2220122201
22202+ fluxcd = callPackage ../applications/networking/cluster/fluxcd { };
22203+
2220222204 linkerd = callPackage ../applications/networking/cluster/linkerd { };
2220322205
2220422206 kubernetes-helm = callPackage ../applications/networking/cluster/helm { };