Skip to content

Commit

Permalink
weave-gitops: init at 0.23.0 (#231426)
Browse files Browse the repository at this point in the history
* weave-gitops: init at 0.23.0

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

---------

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
  • Loading branch information
Victor and SuperSandro2000 committed Jun 14, 2023
1 parent 6b942b5 commit ff1cd88
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/applications/networking/cluster/weave-gitops/default.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit ff1cd88

Please sign in to comment.