depot/third_party/nixpkgs/pkgs/development/tools/kube-aws/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

36 lines
880 B
Nix

{ 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;
};
}