depot/third_party/nixpkgs/pkgs/tools/text/gtree/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
929 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gtree
}:
buildGoModule rec {
pname = "gtree";
version = "1.10.7";
src = fetchFromGitHub {
owner = "ddddddO";
repo = "gtree";
rev = "v${version}";
hash = "sha256-RdbUTYdHRjLal/4o6JlIZ9PZsGiO0VWArpIQQI5NkMI=";
};
vendorHash = "sha256-s6TT7baF07U12owOV/BiUJaXxyybfSy4Tr4euYCjlec=";
subPackages = [
"cmd/gtree"
];
ldflags = [
"-s"
"-w"
"-X=main.Version=${version}"
"-X=main.Revision=${src.rev}"
];
passthru.tests = {
version = testers.testVersion {
package = gtree;
};
};
meta = with lib; {
description = "Generate directory trees and directories using Markdown or programmatically";
homepage = "https://github.com/ddddddO/gtree";
changelog = "https://github.com/ddddddO/gtree/releases/tag/${src.rev}";
license = licenses.bsd2;
maintainers = with maintainers; [ figsoda ];
};
}