2020-12-29 15:07:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghr";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.14.0";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tcnksm";
|
|
|
|
repo = "ghr";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-pF1TPvQLPa5BbXZ9rRCq7xWofXCBRa9CDgNxX/kaTMo=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
vendorSha256 = "sha256-+e9Q4Pw9pJyOXVz85KhOSuybj1PBcJi51fGR3a2Gixk=";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
# Tests require a Github API token, and networking
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/ghr --version
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tcnksm/ghr";
|
|
|
|
description = "Upload multiple artifacts to GitHub Release in parallel";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
};
|
|
|
|
}
|