forked from mirrors/nixpkgs
Merge pull request #127048 from superherointj/package-tfk8s-v0.1.4
tfk8s: 0.1.3 -> 0.1.4
This commit is contained in:
commit
5fd5d3916d
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue