commit 2678b03a7adf5538879d1763f121747af8bf8751
parent b9a6b51fe14de6b01a1299923a666e5c4338513d
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 4 Oct 2018 20:17:23 +0200
pkgs: add skaffold
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
3 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/overlays/sbr.nix b/overlays/sbr.nix
@@ -33,6 +33,9 @@ self: super:
s2i= import ../pkgs/s2i {
inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
};
+ skaffold = import ../pkgs/skaffold {
+ inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
+ };
envbox = import ../pkgs/envbox {
inherit (self) stdenv lib buildGoPackage fetchFromGitHub;
};
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -33,6 +33,9 @@ in rec {
scripts = import ./scripts {
inherit (pkgs) stdenv;
};
+ skaffold = import ./skaffold {
+ inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
+ };
s2i = import ./s2i {
inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub;
};
diff --git a/pkgs/skaffold/default.nix b/pkgs/skaffold/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+ name = "skaffold-${version}";
+ version = "0.15.1";
+ rev = "v${version}";
+
+ goPackagePath = "github.com/GoogleContainerTools/skaffold";
+ subPackages = ["cmd/skaffold"];
+
+ src = fetchFromGitHub {
+ inherit rev;
+ owner = "GoogleContainerTools";
+ repo = "skaffold";
+ sha256 = "1ckkibagcxdbwsrfniailq6sdrs24vg8kbv9w26hhgas2l82a1xr";
+ };
+
+ meta = {
+ description = "Easy and Repeatable Kubernetes Development";
+ homepage = "https://github.com/GoogleContainerTools/skaffold";
+ licence = lib.licenses.asl20;
+ maintainers = with lib.maintainers; [ vdemeester ];
+ };
+}