3
0
Fork 0
forked from mirrors/nixpkgs

kubernetes: generate docs, fix empty man files

This commit is contained in:
Jaka Hudoklin 2016-12-11 15:04:00 +01:00
parent c4a85eafa4
commit 6d15619729

View file

@ -28,16 +28,23 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper which go rsync go-bindata ];
outputs = ["out" "man""pause"];
outputs = ["out" "man" "pause"];
postPatch = ''
substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
substituteInPlace "hack/update-munge-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
substituteInPlace "hack/update-munge-docs.sh" --replace "kube::util::git_upstream_remote_name" "echo origin"
patchShebangs ./hack
'';
WHAT="--use_go_build ${concatStringsSep " " components}";
postBuild = "(cd build/pause && gcc pause.c -o pause)";
postBuild = ''
./hack/generate-docs.sh
(cd build/pause && gcc pause.c -o pause)
'';
installPhase = ''
mkdir -p "$out/bin" "$man/share/man" "$pause/bin"