updatecli: init at 0.70.0
This commit is contained in:
parent
6899a74275
commit
a3dd9749f9
1 changed files with 60 additions and 0 deletions
60
pkgs/by-name/up/updatecli/package.nix
Normal file
60
pkgs/by-name/up/updatecli/package.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, go
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "updatecli";
|
||||
version = "0.70.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "updatecli";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-MQoi/HvJqGCYzQLNsJul/7N3MXkV1X5d48InUSIWT8o=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-RjyVlj66CbkQlzXkdP6ZWf+cNVjOgoPdskQefv9bNoo=";
|
||||
|
||||
# tests require network access
|
||||
doCheck = false;
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/updatecli/updatecli/pkg/core/version.BuildTime=unknown"
|
||||
''-X "github.com/updatecli/updatecli/pkg/core/version.GoVersion=go version go${lib.getVersion go}"''
|
||||
"-X github.com/updatecli/updatecli/pkg/core/version.Version=${version}"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd updatecli \
|
||||
--bash <($out/bin/updatecli completion bash) \
|
||||
--fish <($out/bin/updatecli completion fish) \
|
||||
--zsh <($out/bin/updatecli completion zsh)
|
||||
|
||||
$out/bin/updatecli man > updatecli.1
|
||||
installManPage updatecli.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Declarative Dependency Management tool";
|
||||
longDescription = ''
|
||||
Updatecli is a command-line tool used to define and apply update strategies.
|
||||
'';
|
||||
homepage = "https://www.updatecli.io";
|
||||
changelog = "https://github.com/updatecli/updatecli/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
mainProgram = "updatecli";
|
||||
maintainers = with maintainers; [ croissong ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue