commit 6cb3314b26c75c58a69c86de10fd6903449ed522
parent 40b2813e439956b8ceb3e992df7cf7155197da28
Author: Vincent Demeester <vincent@sbr.pm>
Date: Tue, 2 Oct 2018 10:24:29 +0200
kubernetes: add knctl
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/kubernetes.nix b/kubernetes.nix
@@ -6,5 +6,6 @@
kail
kubectl
kustomize
+ knctl
];
}
diff --git a/overlays/sbr.nix b/overlays/sbr.nix
@@ -21,6 +21,9 @@ self: super:
kubespy = import ../pkgs/kubespy {
inherit (self) stdenv lib buildGoPackage fetchgit;
};
+ knctl = import ./knctl {
+ inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
+ };
scripts = import ../pkgs/scripts {
inherit (self) stdenv;
};
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -24,6 +24,9 @@ in rec {
kubespy = import ./kubespy {
inherit (pkgs) stdenv lib buildGoPackage fetchgit;
};
+ knctl = import ./knctl {
+ inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
+ };
scripts = import ./scripts {
inherit (pkgs) stdenv;
};
diff --git a/pkgs/knctl/default.nix b/pkgs/knctl/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ name = "knctl-${version}";
+ version = "0.0.9";
+ rev = "v${version}";
+
+ goPackagePath = "github.com/cppforlife/knctl";
+
+ src = fetchFromGitHub {
+ inherit rev;
+ owner = "cppforlife";
+ repo = "knctl";
+ sha256 = "0vfn5z9w44qkjymsy6rpgk5yz36i4r54c3f1zrr628mfd0jk0mx7";
+ };
+
+ meta = {
+ description = "Knative CLI";
+ homepage = https://github.com/cppforlife/knctl;
+ licence = lib.licenses.asl20;
+ };
+}