2018-07-21 01:44:44 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
2016-08-24 13:25:57 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "kube-aws";
|
2017-03-14 02:20:38 +00:00
|
|
|
version = "0.9.4";
|
2016-08-24 13:25:57 +01:00
|
|
|
|
2017-03-14 02:20:38 +00:00
|
|
|
goPackagePath = "github.com/coreos/kube-aws";
|
2016-08-24 13:25:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
2017-03-14 02:20:38 +00:00
|
|
|
repo = "kube-aws";
|
2016-08-24 13:25:57 +01:00
|
|
|
rev = "v${version}";
|
2017-03-14 02:20:38 +00:00
|
|
|
sha256 = "11h14fsnflbx76rmpp0fxahbxi2qgcamgyxy9s4rmw83j2m8csxp";
|
2016-08-24 13:25:57 +01:00
|
|
|
};
|
|
|
|
|
2017-03-14 02:20:38 +00:00
|
|
|
preBuild = ''(
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
go generate ./core/controlplane/config
|
|
|
|
go generate ./core/nodepool/config
|
|
|
|
go generate ./core/root/config
|
|
|
|
)'';
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X github.com/coreos/kube-aws/core/controlplane/cluster.VERSION=v${version}
|
2016-08-24 13:25:57 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool for deploying kubernetes on aws using coreos";
|
|
|
|
license = licenses.asl20;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/coreos/coreos-kubernetes";
|
2016-08-24 13:25:57 +01:00
|
|
|
maintainers = with maintainers; [offline];
|
2017-03-14 02:20:38 +00:00
|
|
|
platforms = with platforms; unix;
|
2016-08-24 13:25:57 +01:00
|
|
|
};
|
|
|
|
}
|