2022-08-18 10:27:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, ghr
|
|
|
|
}:
|
2020-12-26 20:14:55 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghr";
|
2022-09-27 12:58:39 +00:00
|
|
|
version = "0.16.0";
|
2020-12-26 20:14:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tcnksm";
|
|
|
|
repo = "ghr";
|
|
|
|
rev = "v${version}";
|
2022-09-27 12:58:39 +00:00
|
|
|
sha256 = "sha256-aD1HEdoAPFFpJL++fLZIk+pIs+qDNYbTGDMlcRjV6M4=";
|
2020-12-26 20:14:55 +00:00
|
|
|
};
|
|
|
|
|
2022-09-27 12:58:39 +00:00
|
|
|
vendorSha256 = "sha256-pqwJPo3ZhsXU1RF4BKPOWQS71+9EitSSTE1+sKlc9+s=";
|
2020-12-26 20:14:55 +00:00
|
|
|
|
|
|
|
# Tests require a Github API token, and networking
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
2022-09-15 03:03:56 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-08-18 10:27:47 +00:00
|
|
|
package = ghr;
|
2022-09-15 03:03:56 +00:00
|
|
|
version = "v${version}";
|
2022-08-18 10:27:47 +00:00
|
|
|
};
|
2020-12-26 20:14:55 +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 ];
|
|
|
|
};
|
|
|
|
}
|