5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
45 lines
928 B
Nix
45 lines
928 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, gtree
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gtree";
|
|
version = "1.9.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ddddddO";
|
|
repo = "gtree";
|
|
rev = "v${version}";
|
|
hash = "sha256-cQO34m78lvgfbDf+Ok0Yo3rnou8ndGfegeIy1Z8xuPU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|