33 lines
879 B
Nix
33 lines
879 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kube3d";
|
|
version = "1.7.0";
|
|
k3sVersion = "1.17.3-k3s1";
|
|
|
|
goPackagePath = "github.com/rancher/k3d";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rancher";
|
|
repo = "k3d";
|
|
rev = "v${version}";
|
|
sha256 = "0aij2l7zmg4cxbw7pwf7ddc64di25hpjvbmp1madhz9q28rwfa9w";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-w -s
|
|
-X github.com/rancher/k3d/version.Version=${version}
|
|
-X github.com/rancher/k3d/version.K3sVersion=v${k3sVersion}
|
|
'';
|
|
|
|
vendorSha256 = null;
|
|
|
|
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;
|
|
maintainers = with maintainers; [ kuznero jlesquembre ngerstle ];
|
|
};
|
|
} |