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
41 lines
989 B
Nix
41 lines
989 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tfsort";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexNabokikh";
|
|
repo = "tfsort";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-PQ7DROZf67pa6VeSsACgOhXz0jCmh48yiVAxMMbyIII=";
|
|
};
|
|
|
|
vendorHash = "sha256-SebYucVQTbIr3kCaCVejw3FEaw9wi2fBVT55yuZRn48=";
|
|
|
|
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
|
|
];
|
|
};
|
|
})
|