2021-01-20 02:09:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, compat24 ? false, compat26 ? true, unicode ? true }:
|
2010-05-06 20:19:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "wxMSW-2.8.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://sourceforge/wxwindows/wxWidgets-2.8.11.tar.gz";
|
2010-05-06 20:19:22 +01:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;};
|
2018-08-10 16:51:18 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 14:45:37 +00:00
|
|
|
platforms = lib.platforms.windows;
|
2019-09-18 17:47:57 +01:00
|
|
|
|
|
|
|
broken = true;
|
2018-08-10 16:51:18 +01:00
|
|
|
};
|
2010-05-06 20:19:22 +01:00
|
|
|
}
|