2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, ghr
|
|
|
|
}:
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghr";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.16.2";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tcnksm";
|
|
|
|
repo = "ghr";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-xClqqTVCEGghaf63kN40mwo49lkS8KC4k/36NYIngFI=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-Wzzg66yJaHJUCfC2aH3Pk+B0d5l/+L7/bcNhQxo8ro0=";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
# Tests require a Github API token, and networking
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-08-21 13:32:41 +00:00
|
|
|
package = ghr;
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tcnksm/ghr";
|
|
|
|
description = "Upload multiple artifacts to GitHub Release in parallel";
|
|
|
|
license = licenses.mit;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ghr";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
}
|