tfsort: init at 0.6.0

This commit is contained in:
Alexander Nabokikh 2025-06-01 12:01:41 +02:00
parent 39ae3c1181
commit cff003172b
No known key found for this signature in database
GPG key ID: 0F7FDC7FC5810093

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
];
};
})