diff --git a/pkgs/applications/misc/xchm/default.nix b/pkgs/applications/misc/xchm/default.nix index 4187474d847..e725124638f 100644 --- a/pkgs/applications/misc/xchm/default.nix +++ b/pkgs/applications/misc/xchm/default.nix @@ -1,10 +1,10 @@ {stdenv, fetchurl, wxGTK, chmlib}: stdenv.mkDerivation { - name = "xchm-0.9.1"; + name = "xchm-1.2"; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/xchm-0.9.1.tar.gz; - md5 = "5ba671e09e4c3ac46ffb5ce9d2c985eb"; + url = http://surfnet.dl.sourceforge.net/sourceforge/xchm/xchm-1.2.tar.gz; + md5 = "17f2cda873f61470636dbfeebb4a531d"; }; buildInputs = [wxGTK chmlib]; } diff --git a/pkgs/development/libraries/chmlib/builder.sh b/pkgs/development/libraries/chmlib/builder.sh index 7ecc1ca3be5..2fd6d7a830c 100644 --- a/pkgs/development/libraries/chmlib/builder.sh +++ b/pkgs/development/libraries/chmlib/builder.sh @@ -2,14 +2,19 @@ unpackCmd="tar xvfj $src" -makeFlags="CC=gcc LD=gcc INSTALLPREFIX=$out" +makeFlags="-f Makefile.simple CC=gcc LD=gcc INSTALLPREFIX=$out" +postConfigure=postConfigure +postConfigure() { + cd src +} + +preInstall=preInstall preInstall() { mkdir $out mkdir $out/lib mkdir $out/include } -preInstall=preInstall installFlags=$makeFlags diff --git a/pkgs/development/libraries/chmlib/default.nix b/pkgs/development/libraries/chmlib/default.nix index 77e3d343a44..3cf75aba9ed 100644 --- a/pkgs/development/libraries/chmlib/default.nix +++ b/pkgs/development/libraries/chmlib/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl, libtool}: stdenv.mkDerivation { - name = "chmlib-0.33"; + name = "chmlib-0.36"; builder = ./builder.sh; src = fetchurl { - url = http://nix.cs.uu.nl/dist/tarballs/chmlib-0.33.tbz; - md5 = "8bc84e94f1cea65005e5cb0ab40e2e86"; + url = http://66.93.236.84/%7Ejedwin/projects/chmlib/chmlib-0.36.tbz; + md5 = "8fa5e9a1af13084ca465d9ee09e1946e"; }; buildInputs = [libtool]; } diff --git a/pkgs/development/libraries/wxGTK-2.6/default.nix b/pkgs/development/libraries/wxGTK-2.6/default.nix new file mode 100644 index 00000000000..4d0650c539d --- /dev/null +++ b/pkgs/development/libraries/wxGTK-2.6/default.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl, pkgconfig, gtk, libXinerama, compat22 ? 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.6.2"; + + src = fetchurl { + url = http://surfnet.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.6.2.tar.bz2; + md5 = "ba2afe7bd028062c5fff6d5ef3249c67"; + }; + + buildInputs = [ + pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib + libXinerama + ]; + + configureFlags = [ + "--enable-gtk2" + (if compat22 then "--enable-compat22" else "--disable-compat22") + "--disable-precomp-headers" + ]; + + inherit gtk compat22; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index d62d8e8bb23..78129f70467 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -878,7 +878,15 @@ rec { inherit (xlibs) libXmu; }; - wxGTK = (import ../development/libraries/wxGTK-2.5) { + wxGTK = wxGTK26; + + wxGTK26 = (import ../development/libraries/wxGTK-2.6) { + inherit fetchurl stdenv pkgconfig; + inherit (gtkLibs) gtk; + inherit (xlibs) libXinerama; + }; + + wxGTK25 = (import ../development/libraries/wxGTK-2.5) { inherit fetchurl stdenv pkgconfig; inherit (gtkLibs) gtk; inherit (xlibs) libXinerama; diff --git a/pkgs/system/populate-cache.nix b/pkgs/system/populate-cache.nix index a136eda2028..b924c9ee35c 100644 --- a/pkgs/system/populate-cache.nix +++ b/pkgs/system/populate-cache.nix @@ -82,7 +82,7 @@ let { batik # fspot hello -# xchm + xchm nxml uml nix