tfsort: init at 0.6.0 (#412669)

This commit is contained in:
Aleksana 2025-06-01 22:37:38 +08:00 committed by GitHub
commit a53c7f6806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View file

@ -1166,6 +1166,12 @@
githubId = 2335822;
name = "Alexandre Esteves";
};
alexnabokikh = {
email = "nabokikh@duck.com";
github = "alexnabokikh";
githubId = 42908293;
name = "Alex Nabokikh";
};
alexnortung = {
name = "alexnortung";
email = "alex_nortung@live.dk";

View file

@ -0,0 +1,40 @@
{
buildGoModule,
fetchFromGitHub,
lib,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "tfsort";
version = "0.6.0";
src = fetchFromGitHub {
owner = "AlexNabokikh";
repo = "tfsort";
tag = "v${finalAttrs.version}";
hash = "sha256-UlI1/xcj/xlAgZPiqI9FiJL7JqjP/J00xQZvzXktbxc=";
};
vendorHash = "sha256-H3sdwIKJcOfExYKRafLaBMTyUArc7jTpoW5zynJLtAY=";
ldflags = [
"-s"
"-w"
"-X main.version=v${finalAttrs.version}"
"-X main.commit=${finalAttrs.version}"
"-X main.date=1970-01-01"
];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/AlexNabokikh/tfsort/releases/tag/v${finalAttrs.version}";
description = "Utility to sort Terraform variables, outputs, locals and terraform blocks";
homepage = "https://github.com/AlexNabokikh/tfsort";
license = lib.licenses.asl20;
mainProgram = "tfsort";
maintainers = [
lib.maintainers.alexnabokikh
];
};
})