1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/kube3d/default.nix

34 lines
927 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-07-01 10:02:04 +01:00
buildGoModule rec {
2019-07-01 10:02:04 +01:00
pname = "kube3d";
2020-03-01 10:24:41 +00:00
version = "1.6.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-03-01 10:24:41 +00:00
sha256 = "0qjwqqynvgzainq66fpzczgynwk3hv7wzgfy5271fc6mj2k0zz5x";
2019-07-01 10:02:04 +01:00
};
buildFlagsArray = ''
-ldflags=
-w -s
-X github.com/rancher/k3d/version.Version=${version}
-X github.com/rancher/k3d/version.K3sVersion=v${k3sVersion}
'';
2020-03-01 10:24:41 +00:00
modSha256 = "0c8bfl0hz5cfhi6jzhhylz051jiix6s7s20fn23w7wri4xaqrjn8";
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
};
}