From 25e75cd5805fe427b1588ed87b108a29cfb81e80 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Mon, 13 Mar 2017 22:20:38 -0400 Subject: [PATCH] kube-aws: 0.8.1 -> 0.9.4 Also, enable on Darwin --- pkgs/development/tools/kube-aws/default.nix | 22 +++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/tools/kube-aws/default.nix b/pkgs/development/tools/kube-aws/default.nix index 0a6d0ba32210..11f4a5c8bd0a 100644 --- a/pkgs/development/tools/kube-aws/default.nix +++ b/pkgs/development/tools/kube-aws/default.nix @@ -4,20 +4,26 @@ with lib; buildGoPackage rec { name = "kube-aws-${version}"; - version = "0.8.1"; + version = "0.9.4"; - goPackagePath = "github.com/coreos/coreos-kubernetes"; + goPackagePath = "github.com/coreos/kube-aws"; src = fetchFromGitHub { owner = "coreos"; - repo = "coreos-kubernetes"; + repo = "kube-aws"; rev = "v${version}"; - sha256 = "067nc525km0f37w5km44fs5pr22a6zz3lkdwwg2akb4hhg6f45c2"; + sha256 = "11h14fsnflbx76rmpp0fxahbxi2qgcamgyxy9s4rmw83j2m8csxp"; }; - preBuild = '' - (cd go/src/github.com/coreos/coreos-kubernetes - go generate multi-node/aws/pkg/config/config.go) + 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} ''; meta = { @@ -25,6 +31,6 @@ buildGoPackage rec { license = licenses.asl20; homepage = https://github.com/coreos/coreos-kubernetes; maintainers = with maintainers; [offline]; - platforms = with platforms; linux; + platforms = with platforms; unix; }; }