Merge pull request #74800 from jlesquembre/kubeprompt

kubeprompt: init at 0.3.0
This commit is contained in:
Sarah Brofeldt 2019-12-07 13:37:09 +01:00 committed by GitHub
commit 18e8ec3bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "kubeprompt";
version = "0.3.0";
src = fetchFromGitHub {
owner = "jlesquembre";
repo = pname;
rev = version;
sha256 = "1a0xi31bd7n2zrx2z4srhvixlbj028h63dlrjzqxgmgn2w6akbz2";
};
preBuild = ''
export buildFlagsArray+=(
"-ldflags=
-w -s
-X ${goPackagePath}/pkg/version.Version=${version}")
'';
goPackagePath = "github.com/jlesquembre/kubeprompt";
modSha256 = "0rbpdk2dixywn3wcdgz48f3xw3b7fk8xh7mrlx27wz7fq5wj9v8f";
meta = with stdenv.lib; {
description = "Kubernetes prompt";
homepage = "https://github.com/jlesquembre/kubeprompt";
license = licenses.epl20;
maintainers = with maintainers; [ jlesquembre ];
platforms = platforms.all;
};
}

View File

@ -10126,6 +10126,8 @@ in
kube-prompt = callPackage ../development/tools/kube-prompt { };
kubeprompt = callPackage ../development/tools/kubeprompt { };
kubicorn = callPackage ../development/tools/kubicorn { };
kustomize = callPackage ../development/tools/kustomize { };