From 688f265eb4b762b89c9fd3e6cd5f2a4de1f0af60 Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Sun, 15 Feb 2026 23:24:36 +0100 Subject: [PATCH] gtree: 1.13.3 -> 1.13.5 --- pkgs/by-name/gt/gtree/package.nix | 32 ++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/gt/gtree/package.nix b/pkgs/by-name/gt/gtree/package.nix index 5025b8b3204a..938eeddce26c 100644 --- a/pkgs/by-name/gt/gtree/package.nix +++ b/pkgs/by-name/gt/gtree/package.nix @@ -1,23 +1,26 @@ { lib, - buildGoModule, + buildGo126Module, fetchFromGitHub, - testers, gtree, + nix-update-script, + testers, }: - -buildGoModule (finalAttrs: { +# buildGoModule currently builds with go 1.25.0. This package requires +# version 1.26.0 theirfor needing to be pinned to buildGo126Module until +# it's updated. +buildGo126Module (finalAttrs: { pname = "gtree"; - version = "1.13.3"; + version = "1.13.5"; src = fetchFromGitHub { owner = "ddddddO"; repo = "gtree"; - rev = "v${finalAttrs.version}"; - hash = "sha256-K7LFnMCx28Abj4U9glFtQWJDHPHPRrGPsP0TiCr5NKc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-2OhXb6ivje7Li/sUO+YHfZPRBKoQnUhNbhbFtqlyjyM="; }; - vendorHash = "sha256-A/O8w56RsiS8VHzq4NpIn8dAt12sNpfl/Jf9KziZ12I="; + vendorHash = "sha256-UTJQvoiqdF1q4VRUfAx7a7V5UyH+zjwDM5YU7cqVDKE="; subPackages = [ "cmd/gtree" @@ -27,20 +30,23 @@ buildGoModule (finalAttrs: { "-s" "-w" "-X=main.Version=${finalAttrs.version}" - "-X=main.Revision=${finalAttrs.src.rev}" + "-X=main.Revision=${finalAttrs.src.tag}" ]; - passthru.tests = { - version = testers.testVersion { - package = gtree; + passthru = { + tests = { + version = testers.testVersion { + package = gtree; + }; }; + updateScript = nix-update-script { }; }; meta = { description = "Generate directory trees and directories using Markdown or programmatically"; mainProgram = "gtree"; homepage = "https://github.com/ddddddO/gtree"; - changelog = "https://github.com/ddddddO/gtree/releases/tag/${finalAttrs.src.rev}"; + changelog = "https://github.com/ddddddO/gtree/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd2; maintainers = [ ]; };