commit
413acf4b9f
@ -1,13 +1,14 @@
|
|||||||
{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, x11, sqlite, gsl,
|
{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, x11, sqlite, gsl,
|
||||||
pyqt4, qwt, fcgi, python, libspatialindex, libspatialite }:
|
pyqt4, qwt, fcgi, pythonPackages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "qgis-2.4.0";
|
name = "qgis-2.6.1";
|
||||||
|
|
||||||
buildInputs = [ gdal qt4 flex bison proj geos x11 sqlite gsl pyqt4 qwt
|
buildInputs = [ gdal qt4 flex bison proj geos x11 sqlite gsl pyqt4 qwt qscintilla
|
||||||
fcgi libspatialindex libspatialite ];
|
fcgi libspatialindex libspatialite postgresql ] ++
|
||||||
|
(with pythonPackages; [ numpy psycopg2 ]);
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python ];
|
nativeBuildInputs = [ cmake makeWrapper ];
|
||||||
|
|
||||||
# fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory
|
# fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory
|
||||||
#enableParallelBuilding = true;
|
#enableParallelBuilding = true;
|
||||||
@ -20,11 +21,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://qgis.org/downloads/${name}.tar.bz2";
|
url = "http://qgis.org/downloads/${name}.tar.bz2";
|
||||||
sha256 = "711b7d81ddff45b083a21f05c8aa5093a6a38a0ee42dfcc873234fcef1fcdd76";
|
sha256 = "1avw9mnhrcxsdalqr2yhyif1cacl4dsgcpfc31axkv7vj401djnl";
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/qgis \
|
||||||
|
--prefix PYTHONPATH : $PYTHONPATH
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "User friendly Open Source Geographic Information System";
|
description = "User friendly Open Source Geographic Information System";
|
||||||
homepage = http://www.qgis.org;
|
homepage = http://www.qgis.org;
|
||||||
|
@ -177,6 +177,7 @@ a.composableDerivation.composableDerivation {} (fix: {
|
|||||||
description = "free Geographic Information System (GIS) software used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization";
|
description = "free Geographic Information System (GIS) software used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization";
|
||||||
homepage = http://grass.itc.it/index.php;
|
homepage = http://grass.itc.it/index.php;
|
||||||
license = [ "GPL" ];
|
license = [ "GPL" ];
|
||||||
|
broken = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -1,23 +1,24 @@
|
|||||||
{ stdenv, fetchurl, sqlite, zlib, proj, geos }:
|
{ stdenv, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libspatialite-4.1.1";
|
name = "libspatialite-4.2.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.gaia-gis.it/gaia-sins/${name}.tar.gz";
|
url = "http://www.gaia-gis.it/gaia-sins/${name}.tar.gz";
|
||||||
sha256 = "03wikddl60ly0yh8szrra1ng2iccsdzz645vkn6a7x2jz45a5084";
|
sha256 = "0b9ipmp09y2ij7yajyjsh0zcwps8n5g88lzfzlkph33lail8l4wz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ sqlite zlib proj geos ];
|
buildInputs = [ pkgconfig libxml2 sqlite zlib proj geos ];
|
||||||
|
|
||||||
configureFlags = "--disable-freexl";
|
configureFlags = "--disable-freexl";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Extensible spatial index library in C++";
|
description = "Extensible spatial index library in C++";
|
||||||
homepage = https://www.gaia-gis.it/fossil/libspatialite;
|
homepage = https://www.gaia-gis.it/fossil/libspatialite;
|
||||||
# They allow any of these
|
# They allow any of these
|
||||||
license = [ "GPLv2+" "LGPLv2+" "MPL1.1" ];
|
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,26 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "proj-4.5.0";
|
name = "proj-4.8.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = ftp://ftp.remotesensing.org/proj/proj-4.5.0.tar.gz;
|
url = http://download.osgeo.org/proj/proj-4.8.0.tar.gz;
|
||||||
sha256 = "1d2qz0vgp13hkfgaz7hkblhb9w2fh2blbjqz73xdinwc08cmflqv";
|
sha256 = "1dfim63ks298204lv2z0v16njz6fs7bf0m4icy09i3ffzvqdpcid";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
postConfigure = ''
|
||||||
|
patch src/Makefile <<EOF
|
||||||
|
272c272
|
||||||
|
< include_HEADERS = proj_api.h org_proj4_Projections.h
|
||||||
|
---
|
||||||
|
> include_HEADERS = proj_api.h org_proj4_Projections.h projects.h
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "Cartographic Projections Library";
|
description = "Cartographic Projections Library";
|
||||||
homepage = http://proj.maptools.org;
|
homepage = http://trac.osgeo.org/proj/;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "qscintilla";
|
pname = "qscintilla";
|
||||||
version = "2.8.3";
|
version = "2.8.4";
|
||||||
|
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/pyqt/QScintilla2/QScintilla-${version}/QScintilla-gpl-${version}.tar.gz";
|
url = "mirror://sourceforge/pyqt/QScintilla2/QScintilla-${version}/QScintilla-gpl-${version}.tar.gz";
|
||||||
sha256 = "fb94e6d61c3ccd4bf167d5f092629e619f7069d42207469458998b761a7cf505";
|
sha256 = "03z8mc7wpk0hyza9b45pyf523gdk0qsqaywkprmp6ffc81s2sywv";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qt ];
|
buildInputs = [ qt ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd Qt4Qt5
|
cd Qt4Qt5
|
||||||
sed -i -e "s,\$\$\\[QT_INSTALL_LIBS\\],$out/libs," \
|
sed -i -e "s,\$\$\\[QT_INSTALL_LIBS\\],$out/lib," \
|
||||||
-e "s,\$\$\\[QT_INSTALL_HEADERS\\],$out/include/," \
|
-e "s,\$\$\\[QT_INSTALL_HEADERS\\],$out/include/," \
|
||||||
-e "s,\$\$\\[QT_INSTALL_TRANSLATIONS\\],$out/share/qt/translations," \
|
-e "s,\$\$\\[QT_INSTALL_TRANSLATIONS\\],$out/share/qt/translations," \
|
||||||
-e "s,\$\$\\[QT_INSTALL_DATA\\],$out/share/qt," \
|
-e "s,\$\$\\[QT_INSTALL_DATA\\],$out/share/qt," \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user