From f04a9770e504ab92aa0872e2327c3da4d6e3da6d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 18 Aug 2022 10:27:47 +0000 Subject: [PATCH] ghr: 0.14.0 -> 0.15.0 --- .../git-and-tools/ghr/default.nix | 20 ++++++++++++------- 1 file 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 5570dbf10148..b5188c97f07c 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";