mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
kops: 1.4.0 -> 1.6.0
This commit is contained in:
parent
c3b2c5bf77
commit
964027aaa1
|
@ -2,24 +2,30 @@
|
|||
|
||||
buildGoPackage rec {
|
||||
name = "kops-${version}";
|
||||
version = "1.4.0";
|
||||
rev = "v${version}";
|
||||
version = "1.6.0";
|
||||
|
||||
goPackagePath = "k8s.io/kops";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
rev = version;
|
||||
owner = "kubernetes";
|
||||
repo = "kops";
|
||||
sha256 = "1jwgn7l8c639j5annwymqjdw5mcajwn58y21042jy5lhgdh8pdf5";
|
||||
sha256 = "0varn38v2vybmahzpgbk73ma368bkdz09wmx2mmqikfppmzszkv3";
|
||||
};
|
||||
|
||||
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 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/...)
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue