@@ -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}"