gtree: 1.13.3 -> 1.13.5

This commit is contained in:
Hythera
2026-02-17 11:06:53 +01:00
parent 9895f5057d
commit 688f265eb4
+19 -13
View File
@@ -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 = [ ];
};