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";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.15.0";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tcnksm";
|
|
|
|
repo = "ghr";
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-947hTRfx3GM6qKDYvlKEmofqPdcmwx9V/zISkcSKALM=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
vendorSha256 = "sha256-OpWp3v1nxHJpEh2jW8MYnbaq66wx9b3DlaKzeti5N3w=";
|
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;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
};
|
|
|
|
}
|