diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-05-06 19:19:22 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-05-06 19:19:22 +0000 |
commit | 2c8783a48b5a2d1e39e03c6fec0decb383f67792 (patch) | |
tree | ca6e1c3b6ceaea8b0b82b3c27dc4a1e6f46e5b3f /pkgs/os-specific/windows | |
parent | 4547dffb5dc30cb090669342d24586c77f678fb1 (diff) | |
download | nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar.gz nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar.bz2 nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar.lz nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar.xz nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.tar.zst nixlib-2c8783a48b5a2d1e39e03c6fec0decb383f67792.zip |
Making wxGTK stay wxGTK even cross-built, so I remove the wxMSW code I added
to test the crossbuilding with wxGTK. I added a new windows-specific package: wxMSW. svn path=/nixpkgs/trunk/; revision=21634
Diffstat (limited to 'pkgs/os-specific/windows')
-rw-r--r-- | pkgs/os-specific/windows/wxMSW-2.8/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/windows/wxMSW-2.8/default.nix b/pkgs/os-specific/windows/wxMSW-2.8/default.nix new file mode 100644 index 000000000000..5c79460060ad --- /dev/null +++ b/pkgs/os-specific/windows/wxMSW-2.8/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, compat24 ? false, compat26 ? true, unicode ? true, +}: + +assert stdenv ? cross -> stdenv.cross.libc == "msvcrt"; + +stdenv.mkDerivation { + name = "wxMSW-2.8.11"; + + src = fetchurl { + url = mirror://sourceforge/wxwindows/wxWidgets-2.8.11.tar.gz; + sha256 = "0icxd21g18d42n1ygshkpw0jnflm03iqki6r623pb5hhd7fm2ksj"; + }; + + configureFlags = [ + (if compat24 then "--enable-compat24" else "--disable-compat24") + (if compat26 then "--enable-compat26" else "--disable-compat26") + "--disable-precomp-headers" + (if unicode then "--enable-unicode" else "") + "--with-opengl" + ]; + + # Cross build only tested for mingw32 + checkCross = throw "This package can only be cross-built" false; + crossAttrs = { + checkCross = true; + }; + + preConfigure = " + substituteInPlace configure --replace /usr /no-such-path + "; + + postBuild = "(cd contrib/src && make)"; + + postInstall = " + (cd contrib/src && make install) + (cd $out/include && ln -s wx-*/* .) + "; + + passthru = {inherit compat24 compat26 unicode;}; +} |