@@ -18,6 +18,31 @@ stdenv.mkDerivation rec {
1818 ./fix-unexport-env-test.patch
1919 ];
2020
21+ # The generated makefile is a small wrapper for calling ./boot-strap
22+ # with a given op. On a case-insensitive filesystem this generated
23+ # makefile clobbers a distinct, shipped, Makefile and causes
24+ # infinite recursion during tests which eventually fail with
25+ # "fork: Resource temporarily unavailable"
26+ configureFlags = [
27+ "--without-makefile"
28+ ];
29+
30+ buildPhase = ''
31+ runHook preBuild
32+
33+ ./boot-strap --prefix=$out -o . op=build
34+
35+ runHook postBuild
36+ '';
37+
38+ installPhase = ''
39+ runHook preInstall
40+
41+ ./boot-strap --prefix=$out -o . op=install
42+
43+ runHook postInstall
44+ '';
45+
2146 setupHook = ./setup-hook.sh;
2247
2348 meta = with lib; {