weave-gitops: init at 0.23.0 (#231426)

* weave-gitops: init at 0.23.0

* Update pkgs/applications/networking/cluster/weave-gitops/default.nix

---------

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Victor 2023-06-14 20:26:06 +02:00 committed by GitHub
parent 6b942b501e
commit ff1cd885da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib, fetchFromGitHub, buildGoModule, stdenv, installShellFiles }:
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" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd gitops \
--bash <($out/bin/gitops completion bash 2>/dev/null) \
--fish <($out/bin/gitops completion fish 2>/dev/null) \
--zsh <($out/bin/gitops completion zsh 2>/dev/null)
'';
meta = with lib; {
homepage = "https://docs.gitops.weave.works";
description = "Weave Gitops CLI";
license = licenses.mpl20;
platforms = platforms.linux;
maintainers = with maintainers; [ nullx76 ];
mainProgram = "gitops";
};
}

View File

@ -35353,6 +35353,9 @@ with pkgs;
inherit (wayfireApplications-unwrapped) wayfire;
}
);
weave-gitops = callPackage ../applications/networking/cluster/weave-gitops { };
wf-config = callPackage ../applications/window-managers/wayfire/wf-config.nix { };
waypipe = callPackage ../applications/networking/remote/waypipe { };