2004-02-17 20:18:46 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, gtk, compat22 ? true}:
|
2003-12-03 22:58:16 +01:00
|
|
|
|
2004-03-29 12:25:25 +02:00
|
|
|
assert pkgconfig != null && gtk != null;
|
|
|
|
assert gtk.libtiff != null;
|
|
|
|
assert gtk.libjpeg != null;
|
|
|
|
assert gtk.libpng != null;
|
|
|
|
assert gtk.libpng.zlib != null;
|
2003-12-03 22:58:16 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2003-12-03 22:58:16 +01:00
|
|
|
name = "wxGTK-2.4.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.4.2.tar.bz2;
|
|
|
|
md5 = "cdadfe82fc93f8a65a2ae18a95b0b0e3";
|
|
|
|
};
|
|
|
|
|
2004-04-02 17:36:14 +02:00
|
|
|
buildinputs = [pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-gtk2"
|
|
|
|
(if compat22 then "--enable-compat22" else "--disable-compat22")
|
|
|
|
];
|
|
|
|
|
|
|
|
inherit gtk compat22;
|
2003-12-03 22:58:16 +01:00
|
|
|
}
|