@@ -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,10 +29,13 @@ stdenv.mkDerivation rec {
2929
3030 outputs = ["out" "man" "pause"];
3131
32− # patch broken go version check, see issue #35403
33− # patch is from https://github.com/kubernetes/kubernetes/pull/58207
34− #TODO: patch already merged upstream - remove for next k8s version
35− patches = [ ./go-version-check.patch ];
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+ ];
3639
3740 postPatch = ''
3841 substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""