nixpkgs-suyu/pkgs/applications/networking/cluster/kube3d/default.nix

34 lines
912 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2019-07-01 11:02:04 +02:00
buildGoModule rec {
2019-07-01 11:02:04 +02:00
pname = "kube3d";
2019-08-06 17:01:06 +02:00
version = "1.3.1";
k3sVersion = "0.9.1";
2019-07-01 11:02:04 +02:00
goPackagePath = "github.com/rancher/k3d";
src = fetchFromGitHub {
owner = "rancher";
repo = "k3d";
rev = "v${version}";
2019-08-06 17:01:06 +02:00
sha256 = "0bdpjnzyxd6mdc1qv0ml89qds6305kn3wmyci2kv6g2y7r7wxvm2";
2019-07-01 11:02:04 +02:00
};
buildFlagsArray = ''
-ldflags=
-w -s
-X github.com/rancher/k3d/version.Version=${version}
-X github.com/rancher/k3d/version.K3sVersion=v${k3sVersion}
'';
modSha256 = "1qadf3gc2626l4jpad4lzi649nh8if9m6fgs2cf46r1nish16h95";
2019-07-01 11:02:04 +02: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;
maintainers = with maintainers; [ kuznero jlesquembre ];
2019-07-01 11:02:04 +02:00
};
}