Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
994 B
Nix
Raw Permalink Normal View History

2025-04-14 13:44:04 +02:00
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "tfmigrate";
2025-08-15 04:13:15 +00:00
version = "0.4.3";
2025-04-14 13:44:04 +02:00
src = fetchFromGitHub {
owner = "minamijoyo";
repo = "tfmigrate";
tag = "v${finalAttrs.version}";
2025-08-15 04:13:15 +00:00
hash = "sha256-tuLbcxJj8TsG3I/o3cHO2DtQm9ql3wlhYBtYiMbRW7o=";
2025-04-14 13:44:04 +02:00
};
2025-08-15 04:13:15 +00:00
vendorHash = "sha256-TqZi5NZ+4eSzq98/ZM4Gab7Sud7bz1DNHrp5nGaGHDE=";
2025-04-14 13:44:04 +02:00
checkFlags = [
"-skip TestExecutorDir" # assumes /usr/bin to be present
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
2025-04-14 13:44:04 +02:00
passthru.updateScript = nix-update-script { };
meta = {
description = "Terraform / OpenTofu state migration tool for GitOps ";
2025-04-14 13:44:04 +02:00
homepage = "https://github.com/minamijoyo/tfmigrate";
changelog = "https://github.com/minamijoyo/tfmigrate/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lykos153 ];
mainProgram = "tfmigrate";
};
})