tfmigrate: init at 0.4.1 (#398546)

This commit is contained in:
Aleksana
2025-04-17 12:30:36 +08:00
committed by GitHub
+39
View File
@@ -0,0 +1,39 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "tfmigrate";
version = "0.4.1";
src = fetchFromGitHub {
owner = "minamijoyo";
repo = "tfmigrate";
tag = "v${finalAttrs.version}";
hash = "sha256-hmNTtDYo6ldBbLKcvuorM5QHju1Na8W18+OAcawXSXg=";
};
vendorHash = "sha256-mm34U4nLow4lCz/AgfqYZJRb71GpQjR14+tm0hfmdDc=";
checkFlags = [
"-skip TestExecutorDir" # assumes /usr/bin to be present
];
doInstallCheck = true;
nativeInstallCheck = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "A Terraform / OpenTofu state migration tool for GitOps ";
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";
};
})