From 05ffbcc31187b54c602a1db9f7551c23ffd5aee0 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Wed, 16 Jun 2021 04:19:24 -0300 Subject: [PATCH] tfk8s: 0.1.3 -> 0.1.4 --- pkgs/tools/misc/tfk8s/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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.