blob: e095755df11039cc6621901d641fe87ba6f3e77a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, fetchFromGitHub, buildGoPackage }:
with lib;
buildGoPackage rec {
pname = "kube-aws";
version = "0.9.4";
goPackagePath = "github.com/coreos/kube-aws";
src = fetchFromGitHub {
owner = "coreos";
repo = "kube-aws";
rev = "v${version}";
sha256 = "11h14fsnflbx76rmpp0fxahbxi2qgcamgyxy9s4rmw83j2m8csxp";
};
preBuild = ''(
cd go/src/${goPackagePath}
go generate ./core/controlplane/config
go generate ./core/nodepool/config
go generate ./core/root/config
)'';
ldflags = [
"-X github.com/coreos/kube-aws/core/controlplane/cluster.VERSION=v${version}"
];
meta = {
description = "Tool for deploying kubernetes on aws using coreos";
license = licenses.asl20;
homepage = "https://github.com/coreos/coreos-kubernetes";
maintainers = with maintainers; [offline];
platforms = with platforms; unix;
};
}
|