add weave-gitops clis

This commit is contained in:
Vivian 2023-05-11 10:43:13 +02:00
parent 0fb744c200
commit 8cb56d73a6
3 changed files with 29 additions and 0 deletions

View file

@ -148,6 +148,7 @@
(vault-push-approle-envs self { }) (vault-push-approle-envs self { })
(vault-push-approles self { }) (vault-push-approles self { })
fast-repl fast-repl
v.weave-gitops
]; ];
}; };
}; };

View file

@ -3,6 +3,8 @@ _final: prev: {
v = { v = {
glitch-soc = prev.callPackage ./glitch-soc { }; glitch-soc = prev.callPackage ./glitch-soc { };
weave-gitops = prev.callPackage ./weave-gitops { };
unbound = prev.unbound.override { unbound = prev.unbound.override {
withSystemd = true; withSystemd = true;
withDoH = true; withDoH = true;

View file

@ -0,0 +1,26 @@
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "weave-gitops";
version = "0.23.0";
src = fetchFromGitHub {
owner = "weaveworks";
repo = pname;
rev = "v${version}";
sha256 = "sha256-nXFR+X63yp9IFTeW41ncBt77bCD3QFTs4phJMMLWrxs=";
};
ldflags = [ "-s" "-w" "-X github.com/weaveworks/weave-gitops/cmd/gitops/version.Version=${version}" ];
vendorSha256 = "sha256-3CgR9F3Bz4k1MVOufaF/E2GD6+bTOnnUqOXkNO9ZFrc=";
subPackages = [ "cmd/gitops" ];
meta = with lib; {
homepage = "https://github.com/weaveworks/weave-gitops";
description = "Weave Gitops CLI";
license = licenses.mpl20;
platforms = platforms.linux;
maintainers = with maintainers; [ nullx76 ];
};
}