Andrzej Szczepański pointed me to Proposition 2.3.13 in the book [Perfect Groups, Derek F. Holt and Wilhelm Plesken, 1989], which gives an answer to my question. 

Namely, in a slightly different terminology Proposition 2.3.13 shows that if $G$ is the fundamental group of a closed flat manifold with holonomy group $Q$, then its commutator subgroup $G^\prime = [G,G]$ is the fundamental group of a closed flat manifold with holonomy group isomorphic to $Q^\prime=[Q,Q]$, and moreover, if $Q$ is perfect, then so is $G^\prime$.
Recall that a group is <a href="https://en.wikipedia.org/wiki/Perfect_group">perfect</a> if it has no nontrivial abelian quotients, or equivalently, the group equals its commutator subgroup.

It is known that every finite group occurs as holonomy group of a closed flat manifold, see [<a href="https://www.jstor.org/stable/1970053">On the Holonomy Group of Locally Euclidean Spaces</a>,
L. Auslander and M. Kuranishi, Annals of Mathematics, 1957]. 

Thus if we start from any finite perfect group $Q$, and let $G$ be the fundamental group of a closed flat manifold with holonomy $Q$, then $G^\prime$ is perfect and also the fundamental group of a closed flat manifold with holonomy isomorphic to $Q$.  

To see why we replace $G$ by $G^\prime$ note that $G^\prime$ and $G^\prime\times \mathbb Z$ have the same holonomy, and the latter group is not perfect.