2019-09-30 22:37:37 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-07-01 10:02:04 +01:00
|
|
|
|
2019-09-30 22:37:37 +01:00
|
|
|
buildGoModule rec {
|
2019-07-01 10:02:04 +01:00
|
|
|
pname = "kube3d";
|
2020-05-19 10:02:50 +01:00
|
|
|
version = "1.7.0";
|
2020-03-04 23:31:01 +00:00
|
|
|
k3sVersion = "1.17.3-k3s1";
|
2019-07-01 10:02:04 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/rancher/k3d";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rancher";
|
|
|
|
repo = "k3d";
|
|
|
|
rev = "v${version}";
|
2020-05-19 10:02:50 +01:00
|
|
|
sha256 = "0aij2l7zmg4cxbw7pwf7ddc64di25hpjvbmp1madhz9q28rwfa9w";
|
2019-07-01 10:02:04 +01:00
|
|
|
};
|
|
|
|
|
2019-09-30 22:37:37 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-w -s
|
|
|
|
-X github.com/rancher/k3d/version.Version=${version}
|
|
|
|
-X github.com/rancher/k3d/version.K3sVersion=v${k3sVersion}
|
|
|
|
'';
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = null;
|
2019-07-01 10:02:04 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/rancher/k3d";
|
|
|
|
description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2020-03-01 10:24:41 +00:00
|
|
|
maintainers = with maintainers; [ kuznero jlesquembre ngerstle ];
|
2019-07-01 10:02:04 +01:00
|
|
|
};
|
2020-05-01 02:59:00 +01:00
|
|
|
}
|