1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 12:02:47 +00:00
nixpkgs/pkgs/development/tools/kube-aws/default.nix

37 lines
897 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoPackage }:
2016-08-24 13:25:57 +01:00
with lib;
buildGoPackage rec {
pname = "kube-aws";
version = "0.9.4";
2016-08-24 13:25:57 +01:00
goPackagePath = "github.com/coreos/kube-aws";
2016-08-24 13:25:57 +01:00
src = fetchFromGitHub {
owner = "coreos";
repo = "kube-aws";
2016-08-24 13:25:57 +01:00
rev = "v${version}";
sha256 = "11h14fsnflbx76rmpp0fxahbxi2qgcamgyxy9s4rmw83j2m8csxp";
2016-08-24 13:25:57 +01: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;
homepage = "https://github.com/coreos/coreos-kubernetes";
2016-08-24 13:25:57 +01:00
maintainers = with maintainers; [offline];
platforms = with platforms; unix;
2016-08-24 13:25:57 +01:00
};
}