|
|
|
@ -11,6 +11,13 @@ stdenv.mkDerivation (rec { |
|
|
|
|
sha256 = "043jk6z90f9pxs9kfn6ckh2vlnbgcv6yfbp5ybahrj3z58dcijp5"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
# I don't know what's that $host directory about, I put the |
|
|
|
|
# files inside include as usual. |
|
|
|
|
postInstall = '' |
|
|
|
|
rmdir $out/include |
|
|
|
|
mv $out/x86_64-w64-mingw32/* $out |
|
|
|
|
rm -R $out/x86_64-w64-mingw32 |
|
|
|
|
''; |
|
|
|
|
} // |
|
|
|
|
(if onlyHeaders then { |
|
|
|
|
name = name + "-headers"; |
|
|
|
@ -18,13 +25,6 @@ stdenv.mkDerivation (rec { |
|
|
|
|
cd mingw-w64-headers |
|
|
|
|
''; |
|
|
|
|
configureFlags = "--without-crt --host=x86_64-w64-mingw32"; |
|
|
|
|
|
|
|
|
|
# I don't know what's that $host directory about, I put the |
|
|
|
|
# files inside include as usual. |
|
|
|
|
postInstall = '' |
|
|
|
|
mv $out/x86_64-w64-mingw32/include/* $out/include |
|
|
|
|
rm -R $out/x86_64-w64-mingw32 |
|
|
|
|
''; |
|
|
|
|
} else { |
|
|
|
|
buildInputs = [ gccCross binutilsCross ]; |
|
|
|
|
|
|
|
|
|