Unverified Commit ff1cd885 authored by Victor's avatar Victor Committed by GitHub
Browse files

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: default avatarSandro <sandro.jaeckel@gmail.com>
parent 6b942b50
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{ 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 −0
Original line number Diff line number Diff line
@@ -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 { };