summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvv <41924494+IvarWithoutBones@users.noreply.github.com>2022-08-19 01:20:37 +0200
committerGitHub <noreply@github.com>2022-08-19 01:20:37 +0200
commit5efa0529286c94347ce9f977e780016b4b21fa9e (patch)
tree74317d48de5f642eee1e1142a3cc0b1f3df04f45
parentad086235ab9f35f02502e75603a9c6e7b4881bd8 (diff)
parentf04a9770e504ab92aa0872e2327c3da4d6e3da6d (diff)
downloadnixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar.gz
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar.bz2
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar.lz
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar.xz
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.tar.zst
nixpkgs-5efa0529286c94347ce9f977e780016b4b21fa9e.zip
Merge pull request #187255 from r-ryantm/auto-update/ghr
ghr: 0.14.0 -> 0.15.0
-rw-r--r--pkgs/applications/version-management/git-and-tools/ghr/default.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/ghr/default.nix b/pkgs/applications/version-management/git-and-tools/ghr/default.nix
index 5570dbf1014..b5188c97f07 100644
--- a/pkgs/applications/version-management/git-and-tools/ghr/default.nix
+++ b/pkgs/applications/version-management/git-and-tools/ghr/default.nix
@@ -1,25 +1,31 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, testers
+, ghr
+}:
 
 buildGoModule rec {
   pname = "ghr";
-  version = "0.14.0";
+  version = "0.15.0";
 
   src = fetchFromGitHub {
     owner = "tcnksm";
     repo = "ghr";
     rev = "v${version}";
-    sha256 = "sha256-pF1TPvQLPa5BbXZ9rRCq7xWofXCBRa9CDgNxX/kaTMo=";
+    sha256 = "sha256-947hTRfx3GM6qKDYvlKEmofqPdcmwx9V/zISkcSKALM=";
   };
 
-  vendorSha256 = "sha256-+e9Q4Pw9pJyOXVz85KhOSuybj1PBcJi51fGR3a2Gixk=";
+  vendorSha256 = "sha256-OpWp3v1nxHJpEh2jW8MYnbaq66wx9b3DlaKzeti5N3w=";
 
   # Tests require a Github API token, and networking
   doCheck = false;
   doInstallCheck = true;
 
-  installCheckPhase = ''
-    $out/bin/ghr --version
-  '';
+  passthru.tests.testVersion = testers.testVersion {
+    package = ghr;
+    version = "ghr version v${version}";
+  };
 
   meta = with lib; {
     homepage = "https://github.com/tcnksm/ghr";