diff --git a/pkgs/tools/misc/tfk8s/default.nix b/pkgs/tools/misc/tfk8s/default.nix index ebe1f056f4e2..e6fc7bf3f7fe 100644 --- a/pkgs/tools/misc/tfk8s/default.nix +++ b/pkgs/tools/misc/tfk8s/default.nix @@ -2,13 +2,14 @@ buildGoModule rec { pname = "tfk8s"; - version = "0.1.3"; + version = "0.1.4"; + tag = "v${version}"; src = fetchFromGitHub { owner = "jrhouston"; repo = "tfk8s"; - rev = "v${version}"; - sha256 = "sha256-3iI5gYfpkxfVylBgniaMeQ73uR8dAjVrdg/eBLRxUR4"; + rev = tag; + sha256 = "sha256-Ha/F8rCGZqFYqJzfemmKRyEBI5khaSIerJxvf2Pf2ao="; }; vendorSha256 = "sha256-wS5diDQFkt8IAp13d8Yeh8ihLvKWdR0Mbw0fMZpqqKE="; @@ -18,12 +19,19 @@ buildGoModule rec { "-ldflags=" "-s" "-w" - "-X main.toolVersion=${version}" + "-X main.toolVersion=${tag}" "-X main.builtBy=nixpkgs" ]; + doCheck = true; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/tfk8s --version | grep ${tag} > /dev/null + ''; + meta = with lib; { - description = "An utility to convert Kubernetes YAML manifests to Terraform's HCL format."; + description = "An utility to convert Kubernetes YAML manifests to Terraform's HCL format"; license = licenses.mit; longDescription = '' tfk8s is a tool that makes it easier to work with the Terraform Kubernetes Provider.