depot/third_party/nixpkgs/pkgs/applications/version-management/ghr/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

36 lines
780 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, ghr
}:
buildGoModule rec {
pname = "ghr";
version = "0.16.0";
src = fetchFromGitHub {
owner = "tcnksm";
repo = "ghr";
rev = "v${version}";
sha256 = "sha256-aD1HEdoAPFFpJL++fLZIk+pIs+qDNYbTGDMlcRjV6M4=";
};
vendorSha256 = "sha256-pqwJPo3ZhsXU1RF4BKPOWQS71+9EitSSTE1+sKlc9+s=";
# Tests require a Github API token, and networking
doCheck = false;
doInstallCheck = true;
passthru.tests.version = testers.testVersion {
package = 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 ];
};
}