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-09-30 11:47:45 +00:00
|
|
|
version = "0.16.0";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tcnksm";
|
|
|
|
repo = "ghr";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-aD1HEdoAPFFpJL++fLZIk+pIs+qDNYbTGDMlcRjV6M4=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
vendorSha256 = "sha256-pqwJPo3ZhsXU1RF4BKPOWQS71+9EitSSTE1+sKlc9+s=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|