source $stdenv/setup ## oh, this is ugly. It would be way better to fix the Makefile instead postUnpack() { cd $sourceRoot cat > config.mk <> config.mk cd .. } postUnpack=postUnpack genericBuild