Unverified Commit 69720f60 authored by chillcicada's avatar chillcicada
Browse files

k2tf: add install check and update script

parent 7914f932
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
  lib,
  buildGoModule,
  fetchFromGitHub,
  versionCheckHook,
  nix-update-script,
}:

buildGoModule (finalAttrs: {
@@ -27,6 +29,11 @@ buildGoModule (finalAttrs: {
    "-X main.commit=v${finalAttrs.version}"
  ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; };

  meta = {
    description = "Kubernetes YAML to Terraform HCL converter";
    mainProgram = "k2tf";