nixpkgs/pkgs/applications/version-management/ghr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
780 B
Nix
Raw Normal View History

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;
passthru.tests.version = testers.testVersion {
2022-08-18 10:27:47 +00:00
package = ghr;
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 ];
};
}