summaryrefslogtreecommitdiff
path: root/pkgs/by-name/gi/github-release/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/gi/github-release/package.nix')
-rw-r--r--pkgs/by-name/gi/github-release/package.nix30
1 files changed, 14 insertions, 16 deletions
diff --git a/pkgs/by-name/gi/github-release/package.nix b/pkgs/by-name/gi/github-release/package.nix
index 840ef1a579c9..006024294943 100644
--- a/pkgs/by-name/gi/github-release/package.nix
+++ b/pkgs/by-name/gi/github-release/package.nix
@@ -2,31 +2,31 @@
buildGoModule,
fetchFromGitHub,
lib,
- testers,
- github-release,
+ nix-update-script,
+ versionCheckHook,
}:
-buildGoModule rec {
+buildGoModule (finalAttrs: {
pname = "github-release";
- version = "0.10.1-unstable-2024-06-25";
+ version = "0.11.0";
src = fetchFromGitHub {
owner = "github-release";
repo = "github-release";
- rev = "d250e89a7bf00d54e823b169c3a4722a55ac67b0";
- hash = "sha256-QDImy9VNJ3hfGVCpMoJ72Za3CiM3SVNH1D9RFHVM+4I=";
+ tag = "v${finalAttrs.version}";
+ hash = "sha256-foQZsYfYM/Cqtck+xfdup6WUeoBiqBTP7USCyPMv5q0=";
};
vendorHash = null;
ldflags = [ "-s" ];
- passthru.tests.version = testers.testVersion {
- package = github-release;
- version = "v${version}";
- };
+ doInstallCheck = true;
+ nativeInstallCheckInputs = [ versionCheckHook ];
+
+ passthru.updateScript = nix-update-script { };
- meta = with lib; {
+ meta = {
description = "Commandline app to create and edit releases on Github (and upload artifacts)";
mainProgram = "github-release";
longDescription = ''
@@ -34,13 +34,11 @@ buildGoModule rec {
delete releases of your projects on Github.
In addition it allows you to attach files to those releases.
'';
-
- license = licenses.mit;
+ license = lib.licenses.mit;
homepage = "https://github.com/github-release/github-release";
- maintainers = with maintainers; [
+ maintainers = with lib.maintainers; [
ardumont
j03
];
- platforms = with platforms; unix;
};
-}
+})