1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/tools/kube-aws/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

37 lines
895 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
)'';
buildFlagsArray = ''
-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;
};
}