summary refs log tree commit diff
path: root/pkgs/development/libraries/wxGTK-2.8
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2007-05-31 13:43:13 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2007-05-31 13:43:13 +0000
commitd16ae4efcf86c59c9fc59a488ad5feaf926177e9 (patch)
treee47995a50711ad22db00ae9215afba45e4e23d06 /pkgs/development/libraries/wxGTK-2.8
parente954f7ef8b3cfea1f530e3d4680132709acc9b95 (diff)
downloadnixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar.gz
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar.bz2
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar.lz
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar.xz
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.tar.zst
nixlib-d16ae4efcf86c59c9fc59a488ad5feaf926177e9.zip
* Added wxGTK/wxPython 2.8. However this was quite pointless as
  Bittorrent is even more broken with wxPython 2.8.

svn path=/nixpkgs/trunk/; revision=8812
Diffstat (limited to 'pkgs/development/libraries/wxGTK-2.8')
-rw-r--r--pkgs/development/libraries/wxGTK-2.8/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/libraries/wxGTK-2.8/default.nix b/pkgs/development/libraries/wxGTK-2.8/default.nix
new file mode 100644
index 000000000000..e991a934de90
--- /dev/null
+++ b/pkgs/development/libraries/wxGTK-2.8/default.nix
@@ -0,0 +1,51 @@
+{ stdenv, fetchurl, pkgconfig, gtk, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
+, compat24 ? false, compat26 ? true, unicode ? true
+}:
+
+assert pkgconfig != null && gtk != null;
+assert gtk.libtiff != null;
+assert gtk.libjpeg != null;
+assert gtk.libpng != null;
+assert gtk.libpng.zlib != null;
+
+stdenv.mkDerivation {
+  name = "wxGTK-2.8.4";
+
+  src = fetchurl {
+    url = http://heanet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.8.4.tar.gz;
+    sha256 = "177hls125f3zjsymsww9jjkd2idb6jmp4ylwg94dsyzygsvyj58k";
+  };
+
+  buildInputs = [
+    pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib
+    libXinerama libSM libXxf86vm xf86vidmodeproto
+  ];
+
+  configureFlags = [
+    "--enable-gtk2"
+    (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 "")
+  ];
+
+  # This variable is used by configure to find some dependencies.
+  SEARCH_INCLUDE =
+    "${libXinerama}/include ${libSM}/include ${libXxf86vm}/include";
+
+  # Work around a bug in configure.
+  NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1";
+
+  preConfigure = "
+    substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
+    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 gtk compat24 compat26 unicode;};
+}