mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
37 lines
780 B
Nix
37 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 ];
|
|
};
|
|
}
|