Files
nixpkgs/pkgs/by-name/tr/treegen/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
nix-update-script,
testers,
treegen,
}:
buildGoModule rec {
pname = "treegen";
version = "1.1.0";
src = fetchFromGitHub {
owner = "bilbilak";
repo = "treegen";
tag = "v${version}";
hash = "sha256-PPWUEfX7OXKZnghiVXU+eCjveA1VszA3uS8C3uI3pFM=";
};
vendorHash = "sha256-hocnLCzWN8srQcO3BMNkd2lt0m54Qe7sqAhUxVZlz1k=";
ldflags = [
"-s"
"-w"
"-X github.com/bilbilak/treegen/config.Version=${version}"
];
passthru = {
tests = {
version = testers.testVersion {
package = treegen;
command = "treegen --version";
};
};
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/bilbilak/treegen/blob/main/CHANGELOG.md";
description = "ASCII Tree Directory and File Structure Generator";
homepage = "https://github.com/bilbilak/treegen";
license = lib.licenses.gpl3Only;
mainProgram = "treegen";
maintainers = with lib.maintainers; [ _4r7if3x ];
platforms = with lib.platforms; unix ++ windows;
};
}