From 0be243e26defdf541a4d6b1a8de472adcf2708f5 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 3 Jun 2010 00:51:23 +0000 Subject: [PATCH] t/gis/qgis updating qgis Signed-off-by: Marc Weber svn path=/nixpkgs/trunk/; revision=22115 --- .../misc/qgis/{1.0.1-2.nix => default.nix} | 8 +++---- pkgs/applications/misc/qgis/trunk.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 12 ++++++++-- 3 files changed, 37 insertions(+), 6 deletions(-) rename pkgs/applications/misc/qgis/{1.0.1-2.nix => default.nix} (89%) create mode 100644 pkgs/applications/misc/qgis/trunk.nix diff --git a/pkgs/applications/misc/qgis/1.0.1-2.nix b/pkgs/applications/misc/qgis/default.nix similarity index 89% rename from pkgs/applications/misc/qgis/1.0.1-2.nix rename to pkgs/applications/misc/qgis/default.nix index af28a381fba0..b49275a65619 100644 --- a/pkgs/applications/misc/qgis/1.0.1-2.nix +++ b/pkgs/applications/misc/qgis/default.nix @@ -6,19 +6,19 @@ let inherit (builtins) getAttr; in composableDerivation.composableDerivation {} { - buildInputs = [ gdal cmake qt flex bison proj geos x11 sqlite gsl]; + buildInputs = [ gdal cmake qt flex bison proj geos x11 sqlite gsl pyqt4]; cfgOption = [ # without this option it can't find sqlite libs yet (missing symbols..) (TODO) "-DWITH_INTERNAL_SQLITE3=TRUE" ]; - name = "qgis-1.0.1-2"; + name = "qgis-1.4.0"; # src = args.fetchsvn { url=https://svn.qgis.org/repos/qgis/trunk/qgis; # md5="ac0560e0a2d4e6258c8639f1e9b56df3"; rev="7704"; }; src = fetchurl { - url = "http://download.osgeo.org/qgis/src/qgis_1.0.1-2.tar.gz"; - sha256 = "07yyic9sn1pz20wjk7k560jwqz6b19rhf2gawybz38xq1f8rjwd4"; + url = http://download.osgeo.org/qgis/src/qgis_1.4.0.tar.gz; + sha256 = "1nn71j9pnkqcprwvzqnybh6ybl0zp50jj04lm769bnjbxknpxq5v"; }; meta = { diff --git a/pkgs/applications/misc/qgis/trunk.nix b/pkgs/applications/misc/qgis/trunk.nix new file mode 100644 index 000000000000..e7e79b47a764 --- /dev/null +++ b/pkgs/applications/misc/qgis/trunk.nix @@ -0,0 +1,23 @@ +{qgis, fetchurl, sourceFromHead, python, sip}: +qgis.merge { + + name = "qgis-trunk"; + + buildInputs = [ sip python ]; + + preConfigure = '' + export PYTHONPATH=$(toPythonPath ${sip}) + ''; + + cfgOption = [ + # without this option it can't find sqlite libs yet (missing symbols..) (TODO) + "-DWITH_INTERNAL_SQLITE3=TRUE" + "-DPYTHON_EXECUTABLE=${python}/bin/python" + ]; + + # REGION AUTO UPDATE: { name="qgis"; type="svn"; url="https://svn.osgeo.org/qgis/trunk/qgis"; } + src = sourceFromHead "qgis-13572.tar.gz" + (fetchurl { url = "http://mawercer.de/~nix/repos/qgis-13572.tar.gz"; sha256 = "fd4c0e19919901cbee7ead7522acdbecbf17c5b9050e34ef91f8ea6e2736bec8"; }); + # END + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ec861058cf2..aa4c1fd231d9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8978,11 +8978,14 @@ let }; # doesn't compile yet - in case someone else want's to continue .. - qgis = (import ../applications/misc/qgis/1.0.1-2.nix) { + # use Trunk because qgisReleased segfaults no resize for now + qgis = qgisTrunk; + qgisReleased = (import ../applications/misc/qgis) { inherit composableDerivation fetchsvn stdenv flex lib ncurses fetchurl perl cmake gdal geos proj x11 gsl libpng zlib bison - sqlite glibc fontconfig freetype /* use libc from stdenv ? - to lazy now - Marc */; + sqlite glibc fontconfig freetype /* use libc from stdenv ? - to lazy now - Marc */ + python postgresql pyqt4; inherit (xlibs) libSM libXcursor libXinerama libXrandr libXrender; inherit (xorg) libICE; qt = qt4; @@ -8991,6 +8994,11 @@ let # grass = "not yet supported" # cmake -D WITH_GRASS=TRUE and GRASS_PREFX=.. }; + qgisTrunk = (import ../applications/misc/qgis/trunk.nix) { + inherit fetchurl sourceFromHead python sip; + qgis = qgisReleased; + }; + zapping = import ../applications/video/zapping { inherit fetchurl stdenv pkgconfig perl python gettext zvbi libjpeg libpng x11