From ff1cd885da89c8f27091d7cf45af95b97970170f Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 14 Jun 2023 20:26:06 +0200 Subject: [PATCH] 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 --- .../cluster/weave-gitops/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/networking/cluster/weave-gitops/default.nix diff --git a/pkgs/applications/networking/cluster/weave-gitops/default.nix b/pkgs/applications/networking/cluster/weave-gitops/default.nix new file mode 100644 index 0000000000000..3133fdb3ca534 --- /dev/null +++ b/pkgs/applications/networking/cluster/weave-gitops/default.nix @@ -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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0004be72a552a..d6e5abe1fcde8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };