git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #35425 from xeji/kubernetes-go-version

kubernetes: patch broken go version check

commite9fdcc9662557a57241150967ff5b9676d88d673 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 24 Feb 2018, 01:38 (9 years ago) parentcb6172c465d8b0
1 file changed+9−1
pkgs/applications/networking/cluster/kubernetes/default.nix+9−1
pkgs/applications/networking/cluster/kubernetes/default.nix+9−1
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchFromGitHub, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync
1+{ stdenv, lib, fetchFromGitHub, fetchpatch, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync
22, iptables, coreutils
33, components ? [
44 "cmd/kubeadm"
@@ -29,6 +29,14 @@ stdenv.mkDerivation rec {
2929
3030 outputs = ["out" "man" "pause"];
3131
32+ patches = [
33+ # patch is from https://github.com/kubernetes/kubernetes/pull/58207
34+ (fetchpatch {
35+ url = "https://github.com/kubernetes/kubernetes/commit/a990b04dc8a7d8408a71eee40db93621cf2b6d1b.patch";
36+ sha256 = "0piqilc5c9frikl74hamkffawwg1mvdwfxqvjnmk6wdma43dbb7w";
37+ })
38+ ];
39+
3240 postPatch = ''
3341 substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
3442 substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"