mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
Merge pull request #315979 from croissong/updatecli-improve-package-quality
updatecli: improve package quality
This commit is contained in:
commit
66e35ac7f9
@ -1,9 +1,12 @@
|
|||||||
{ lib
|
{
|
||||||
, go
|
lib,
|
||||||
, buildGoModule
|
go,
|
||||||
, fetchFromGitHub
|
buildGoModule,
|
||||||
, nix-update-script
|
fetchFromGitHub,
|
||||||
, installShellFiles
|
nix-update-script,
|
||||||
|
installShellFiles,
|
||||||
|
testers,
|
||||||
|
updatecli,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -12,7 +15,7 @@ buildGoModule rec {
|
|||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "updatecli";
|
owner = "updatecli";
|
||||||
repo = pname;
|
repo = "updatecli";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-VpMi+r7QUSD99PRzbTeIxXn1O9GdfHNJM1F0OBzvNmc=";
|
hash = "sha256-VpMi+r7QUSD99PRzbTeIxXn1O9GdfHNJM1F0OBzvNmc=";
|
||||||
};
|
};
|
||||||
@ -32,7 +35,13 @@ buildGoModule rec {
|
|||||||
"-X github.com/updatecli/updatecli/pkg/core/version.Version=${version}"
|
"-X github.com/updatecli/updatecli/pkg/core/version.Version=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru = {
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
tests.version = testers.testVersion {
|
||||||
|
package = updatecli;
|
||||||
|
command = "updatecli version";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
@ -52,7 +61,7 @@ buildGoModule rec {
|
|||||||
Updatecli is a command-line tool used to define and apply update strategies.
|
Updatecli is a command-line tool used to define and apply update strategies.
|
||||||
'';
|
'';
|
||||||
homepage = "https://www.updatecli.io";
|
homepage = "https://www.updatecli.io";
|
||||||
changelog = "https://github.com/updatecli/updatecli/releases/tag/v${version}";
|
changelog = "https://github.com/updatecli/updatecli/releases/tag/${src.rev}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
mainProgram = "updatecli";
|
mainProgram = "updatecli";
|
||||||
maintainers = with maintainers; [ croissong ];
|
maintainers = with maintainers; [ croissong ];
|
||||||
|
Loading…
Reference in New Issue
Block a user