commit 18d52b55c07511c3a4dde6d1e4122e98e1682458
parent f7e972a42cedeacdeb5ebc1479d84dd5dcdd9ddd
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 4 Oct 2018 20:04:13 +0200
pkgs: add krew (very unstable)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/overlays/sbr.nix b/overlays/sbr.nix
@@ -24,6 +24,9 @@ self: super:
knctl = import ../pkgs/knctl {
inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
};
+ krew = import ../pkgs/krew {
+ inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
+ };
scripts = import ../pkgs/scripts {
inherit (self) stdenv;
};
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -27,6 +27,9 @@ in rec {
knctl = import ./knctl {
inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
};
+ krew = import ./krew {
+ inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
+ };
scripts = import ./scripts {
inherit (pkgs) stdenv;
};
diff --git a/pkgs/krew/default.nix b/pkgs/krew/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ name = "krew-unstable-${version}";
+ version = "2018-09-26";
+ rev = "4f7485c1bdd303efee97ab709488829b222e5335";
+
+ goPackagePath = "github.com/GoogleContainerTools/krew";
+
+ src = fetchFromGitHub {
+ inherit rev;
+ owner = "GoogleContainerTools";
+ repo = "krew";
+ sha256 = "0rv7gikvnwj0lrn8f1v868jfs4i8hkqv5j289lgr5hzr0pjx9v8a";
+ };
+
+ meta = {
+ description = "The package manager for 'kubectl plugins. ";
+ homepage = "https://github.com/GoogleContainerTools/krew";
+ licence = lib.licenses.asl20;
+ };
+}