depot/third_party/nixpkgs/pkgs/applications/version-management/ghr/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

36 lines
778 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=";
};
vendorHash = "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 ];
};
}