Turned out, the buildGoModule
default buildPhase tried to compile subpackages that are not compileable.
Using a modified make rule:
buildPhase = ''
# make --trace go.build SHELL=${pkgs.bash}/bin/bash VERSION=${version}
CGO_ENABLED=0 go build -mod=vendor -v -o _output/bin/linux_amd64/rook \
-tags "" -pkgdir .work/pkg/linux_amd64_static -installsuffix static \
-ldflags '-s -w -X github.com/rook/rook/pkg/version.Version=${version}' \
github.com/rook/rook/cmd/rook
'';
solved the problem.