tfmigrate: init at 0.4.1
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user