mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
tfsort: init at 0.6.0 (#412669)
This commit is contained in:
commit
a53c7f6806
2 changed files with 46 additions and 0 deletions
|
@ -1166,6 +1166,12 @@
|
||||||
githubId = 2335822;
|
githubId = 2335822;
|
||||||
name = "Alexandre Esteves";
|
name = "Alexandre Esteves";
|
||||||
};
|
};
|
||||||
|
alexnabokikh = {
|
||||||
|
email = "nabokikh@duck.com";
|
||||||
|
github = "alexnabokikh";
|
||||||
|
githubId = 42908293;
|
||||||
|
name = "Alex Nabokikh";
|
||||||
|
};
|
||||||
alexnortung = {
|
alexnortung = {
|
||||||
name = "alexnortung";
|
name = "alexnortung";
|
||||||
email = "alex_nortung@live.dk";
|
email = "alex_nortung@live.dk";
|
||||||
|
|
40
pkgs/by-name/tf/tfsort/package.nix
Normal file
40
pkgs/by-name/tf/tfsort/package.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue