From abd0237851afd575586bfa03da5d2df754f89c73 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sat, 16 Nov 2024 03:17:16 +0900 Subject: [PATCH 1/3] ghq: add passthru.tests.version --- pkgs/by-name/gh/ghq/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gh/ghq/package.nix b/pkgs/by-name/gh/ghq/package.nix index 8f31cc5e01d9..c9fae1a4f99e 100644 --- a/pkgs/by-name/gh/ghq/package.nix +++ b/pkgs/by-name/gh/ghq/package.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, testers, ghq }: buildGoModule rec { pname = "ghq"; @@ -24,6 +24,12 @@ buildGoModule rec { install -m 444 -D ${src}/misc/bash/_ghq $out/share/bash-completion/completions/_ghq ''; + passthru = { + tests.version = testers.testVersion { + package = ghq; + }; + }; + meta = { description = "Remote repository management made easy"; homepage = "https://github.com/x-motemen/ghq"; From e250f56a19f1c6615b17f9c5b9cce550b7af2d44 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sat, 16 Nov 2024 03:18:26 +0900 Subject: [PATCH 2/3] ghq: add updateScript --- pkgs/by-name/gh/ghq/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gh/ghq/package.nix b/pkgs/by-name/gh/ghq/package.nix index c9fae1a4f99e..11e328d549bd 100644 --- a/pkgs/by-name/gh/ghq/package.nix +++ b/pkgs/by-name/gh/ghq/package.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, testers, ghq }: +{ lib, buildGoModule, fetchFromGitHub, testers, nix-update-script, ghq }: buildGoModule rec { pname = "ghq"; @@ -28,6 +28,7 @@ buildGoModule rec { tests.version = testers.testVersion { package = ghq; }; + updateScript = nix-update-script { }; }; meta = { From e80357c95b3cfb7647774e9b883eed58449a7f47 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 26 Nov 2024 03:33:26 +0900 Subject: [PATCH 3/3] ghq: format with nixfmt-rfc-style --- pkgs/by-name/gh/ghq/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gh/ghq/package.nix b/pkgs/by-name/gh/ghq/package.nix index 11e328d549bd..a096a25db3e7 100644 --- a/pkgs/by-name/gh/ghq/package.nix +++ b/pkgs/by-name/gh/ghq/package.nix @@ -1,4 +1,11 @@ -{ lib, buildGoModule, fetchFromGitHub, testers, nix-update-script, ghq }: +{ + lib, + buildGoModule, + fetchFromGitHub, + testers, + nix-update-script, + ghq, +}: buildGoModule rec { pname = "ghq";