depot/third_party/nixpkgs/pkgs/applications/version-management/git-and-tools/ghr/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

36 lines
796 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, ghr
}:
buildGoModule rec {
pname = "ghr";
version = "0.15.0";
src = fetchFromGitHub {
owner = "tcnksm";
repo = "ghr";
rev = "v${version}";
sha256 = "sha256-947hTRfx3GM6qKDYvlKEmofqPdcmwx9V/zISkcSKALM=";
};
vendorSha256 = "sha256-OpWp3v1nxHJpEh2jW8MYnbaq66wx9b3DlaKzeti5N3w=";
# Tests require a Github API token, and networking
doCheck = false;
doInstallCheck = true;
passthru.tests.testVersion = testers.testVersion {
package = ghr;
version = "ghr version v${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 ];
};
}