diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2020-12-29 00:56:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 00:56:08 +0100 |
commit | 86bee6a67273af7ee819710236e5646ae4186a93 (patch) | |
tree | 5fd39ac1ebd1ff6666ac67fa73bccf8ad921787c /pkgs/applications/version-management | |
parent | eb17c2fe9be639bcf147b6117eb765e483d4cb38 (diff) | |
parent | 0c971e7bc5a635abbab773090f0b465f4ad48d7f (diff) |
Merge pull request #107660 from IvarWithoutBones/ghr-0.13
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/ghr/default.nix | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index d019fcbae59d..46b27e95c798 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -38,6 +38,8 @@ let ghq = callPackage ./ghq { }; + ghr = callPackage ./ghr { }; + git = appendToName "minimal" gitBase; git-absorb = callPackage ./git-absorb { diff --git a/pkgs/applications/version-management/git-and-tools/ghr/default.nix b/pkgs/applications/version-management/git-and-tools/ghr/default.nix new file mode 100644 index 000000000000..be6d64646a59 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/ghr/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ghr"; + version = "0.13.0"; + + src = fetchFromGitHub { + owner = "tcnksm"; + repo = "ghr"; + rev = "v${version}"; + sha256 = "1nm5kdjkqayxh06j9nr5daic9sw9nx9w06y9gaqhdrw9byvjpr1a"; + }; + + vendorSha256 = "14avsngzhl1b8a05i43ph6sxh9vj0jls0acxr9j7r0h3f0vpamcj"; + + # Tests require a Github API token, and networking + doCheck = false; + doInstallCheck = true; + + installCheckPhase = '' + $out/bin/ghr --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 ]; + }; +} |