-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
6b942b5
commit ff1cd88
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
pkgs/applications/networking/cluster/weave-gitops/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters