mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
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:
parent
6b942b501e
commit
ff1cd885da
@ -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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user