ec95f3cd1e
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin/bin/kops -h` got 0 exit code - ran `/nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin/bin/kops --help` got 0 exit code - ran `/nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin/bin/kops help` got 0 exit code - ran `/nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin/bin/kops version` and found version 1.8.1 - found 1.8.1 with grep in /nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin - found 1.8.1 in filename of file in /nix/store/hclwimgs404fz9k2lrx35xcxa16bgb9x-kops-1.8.1-bin cc "@offline @zimbatm @ehmry @lethalman"
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub, go-bindata }:
|
|
|
|
buildGoPackage rec {
|
|
name = "kops-${version}";
|
|
version = "1.8.1";
|
|
|
|
goPackagePath = "k8s.io/kops";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = version;
|
|
owner = "kubernetes";
|
|
repo = "kops";
|
|
sha256 = "12nyr0iw1xwp60apli3nlq2vyn4jk3qjrb404m2syx2mqbnn47my";
|
|
};
|
|
|
|
buildInputs = [go-bindata];
|
|
subPackages = ["cmd/kops"];
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X k8s.io/kops.Version=${version}
|
|
-X k8s.io/kops.GitVersion=${version}
|
|
'';
|
|
|
|
preBuild = ''
|
|
(cd go/src/k8s.io/kops
|
|
go-bindata -o upup/models/bindata.go -pkg models -prefix upup/models/ upup/models/...
|
|
go-bindata -o federation/model/bindata.go -pkg model -prefix federation/model federation/model/...)
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $bin/share/bash-completion/completions
|
|
mkdir -p $bin/share/zsh/site-functions
|
|
$bin/bin/kops completion bash > $bin/share/bash-completion/completions/kops
|
|
$bin/bin/kops completion zsh > $bin/share/zsh/site-functions/_kops
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Easiest way to get a production Kubernetes up and running";
|
|
homepage = https://github.com/kubernetes/kops;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [offline zimbatm];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|