depot/third_party/nixpkgs/pkgs/tools/text/gtree/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

45 lines
929 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gtree
}:
buildGoModule rec {
pname = "gtree";
version = "1.9.12";
src = fetchFromGitHub {
owner = "ddddddO";
repo = "gtree";
rev = "v${version}";
hash = "sha256-N4gw2SaNAcQULNxE+v4I+UhfziLH7zLs0cIP5mHGUx0=";
};
vendorHash = "sha256-3VNcis7G0k/WTt8APvFaVBoYTo+RhjpnT1cGWhQhXK0=";
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 ];
};
}