From 24c157910c817e7b63710c219eaa45e42a51b4ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 6 May 2010 18:23:03 +0000 Subject: [PATCH] Making wxWidgets cross-build for mingw32. svn path=/nixpkgs/trunk/; revision=21631 --- pkgs/development/libraries/wxGTK-2.8/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/libraries/wxGTK-2.8/default.nix b/pkgs/development/libraries/wxGTK-2.8/default.nix index cc899d7b003..3d0d27f36dd 100644 --- a/pkgs/development/libraries/wxGTK-2.8/default.nix +++ b/pkgs/development/libraries/wxGTK-2.8/default.nix @@ -30,6 +30,21 @@ stdenv.mkDerivation { "--with-opengl" ]; + # Cross build only tested for mingw32 + # Additionally, this should not be called wxGTK anymore, if built for + # mingw32. But before placing this in a better place, it helps as a test for + # mingw32. + crossAttrs = assert stdenv.cross.libc == "msvcrt"; { + src = fetchurl { + url = mirror://sourceforge/wxwindows/wxWidgets-2.8.11.tar.gz; + sha256 = "0icxd21g18d42n1ygshkpw0jnflm03iqki6r623pb5hhd7fm2ksj"; + }; + buildInputs = []; + propagatedBuildInputs = []; + SEARCH_INCLUDE=""; + SEARCH_LIB=""; + }; + # This variable is used by configure to find some dependencies. SEARCH_INCLUDE = "${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";