depot/third_party/nixpkgs/pkgs/tools/text/gtree/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

45 lines
928 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, gtree
}:
buildGoModule rec {
pname = "gtree";
version = "1.9.5";
src = fetchFromGitHub {
owner = "ddddddO";
repo = "gtree";
rev = "v${version}";
hash = "sha256-qbAus0RgocbkC9eOmoiAOoyZw58LPDZlJgoRA/SzhQI=";
};
vendorHash = "sha256-QxcDa499XV43p8fstENOtfe3iZ176R5/Ub5iovXlYIM=";
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 ];
};
}