summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific/windows
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 22:07:23 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 22:07:23 +0000
commit383b76df790a3722b005934f9799d3edc9fecb8e (patch)
tree1a7236ee847fa7c084e3e6433a2a3439b1d3308f /pkgs/os-specific/windows
parente9186a03b9eba84b830de16d341f3caedcac8ba7 (diff)
Fixing mingw-w64 builds. I can build simple C++ programs with gccCrossStageFinal.
I also add tests for hydra; let's see if it builds far. svn path=/nixpkgs/trunk/; revision=34232
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r--pkgs/os-specific/windows/mingw-w64/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/os-specific/windows/mingw-w64/default.nix b/pkgs/os-specific/windows/mingw-w64/default.nix
index 570b40bdac69..c358565c4551 100644
--- a/pkgs/os-specific/windows/mingw-w64/default.nix
+++ b/pkgs/os-specific/windows/mingw-w64/default.nix
@@ -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 ];