commit
95a3c8d151
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, cmake, ninja, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
|
{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
|
||||||
, qwt, fcgi, python3Packages, libspatialindex, libspatialite, postgresql
|
, qwt, fcgi, python3Packages, libspatialindex, libspatialite, postgresql
|
||||||
, txt2tags, openssl, libzip, hdf5, netcdf, exiv2
|
, txt2tags, openssl, libzip, hdf5, netcdf, exiv2
|
||||||
, qtbase, qtwebkit, qtsensors, qca-qt5, qtkeychain, qscintilla, qtserialport, qtxmlpatterns
|
, qtbase, qtwebkit, qtsensors, qca-qt5, qtkeychain, qscintilla, qtserialport, qtxmlpatterns
|
||||||
@ -9,8 +9,8 @@ let
|
|||||||
pythonBuildInputs = with python3Packages;
|
pythonBuildInputs = with python3Packages;
|
||||||
[ qscintilla-qt5 gdal jinja2 numpy psycopg2
|
[ qscintilla-qt5 gdal jinja2 numpy psycopg2
|
||||||
chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
|
chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
|
||||||
in stdenv.mkDerivation rec {
|
in mkDerivation rec {
|
||||||
version = "3.8.0";
|
version = "3.8.3";
|
||||||
pname = "qgis";
|
pname = "qgis";
|
||||||
name = "${pname}-unwrapped-${version}";
|
name = "${pname}-unwrapped-${version}";
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
|
|||||||
owner = "qgis";
|
owner = "qgis";
|
||||||
repo = "QGIS";
|
repo = "QGIS";
|
||||||
rev = "final-${lib.replaceStrings ["."] ["_"] version}";
|
rev = "final-${lib.replaceStrings ["."] ["_"] version}";
|
||||||
sha256 = "11jqj6lavpw9piv0rm8vvbgd99zhcxl6yfjg699wlrjlyf71xac5";
|
sha256 = "16axjih48qn8ri3p71d8f7k0y3rd05wghmg1fcbyda871b45b2f8";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt exiv2
|
buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt exiv2
|
||||||
fcgi libspatialindex libspatialite postgresql txt2tags libzip hdf5 netcdf
|
fcgi libspatialindex libspatialite postgresql txt2tags libzip hdf5 netcdf
|
||||||
qtbase qtwebkit qtsensors qca-qt5 qtkeychain qscintilla qtserialport qtxmlpatterns] ++
|
qtbase qtwebkit qtsensors qca-qt5 qtkeychain qscintilla qtserialport qtxmlpatterns] ++
|
||||||
(stdenv.lib.optional withGrass grass) ++ pythonBuildInputs;
|
(lib.optional withGrass grass) ++ pythonBuildInputs;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake flex bison ninja ];
|
nativeBuildInputs = [ cmake flex bison ninja ];
|
||||||
|
|
||||||
@ -45,13 +45,13 @@ in stdenv.mkDerivation rec {
|
|||||||
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
||||||
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
|
"-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
|
||||||
"-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5" ] ++
|
"-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5" ] ++
|
||||||
stdenv.lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";
|
lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A Free and Open Source Geographic Information System";
|
description = "A Free and Open Source Geographic Information System";
|
||||||
homepage = http://www.qgis.org;
|
homepage = http://www.qgis.org;
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with lib.platforms; linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ lsix ];
|
maintainers = with lib.maintainers; [ lsix ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -34,15 +34,16 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = lib.optional (stdenv.isDarwin && withQt5) [ xcodePatch ];
|
patches = lib.optional (stdenv.isDarwin && withQt5) [ xcodePatch ];
|
||||||
|
|
||||||
|
# Make sure that libqscintilla2.so is available in $out/lib since it is expected
|
||||||
|
# by some packages such as sqlitebrowser
|
||||||
|
postFixup = ''
|
||||||
|
ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# By default qscintilla will name the library with a qt version suffix which
|
|
||||||
# confuses the crap out of sqlitebrowser and possibly others so we simply
|
|
||||||
# strip the suffix as we don't need it and the various FindQScintilla.cmake
|
|
||||||
# files floating around *should* look for the un-suffixed version.
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace qscintilla.pro \
|
substituteInPlace qscintilla.pro \
|
||||||
--replace '_qt$''${QT_MAJOR_VERSION}' "" \
|
|
||||||
--replace '$$[QT_INSTALL_LIBS]' $out/lib \
|
--replace '$$[QT_INSTALL_LIBS]' $out/lib \
|
||||||
--replace '$$[QT_INSTALL_HEADERS]' $out/include \
|
--replace '$$[QT_INSTALL_HEADERS]' $out/include \
|
||||||
--replace '$$[QT_INSTALL_TRANSLATIONS]' $out/translations \
|
--replace '$$[QT_INSTALL_TRANSLATIONS]' $out/translations \
|
||||||
|
@ -15,6 +15,13 @@ buildPythonPackage {
|
|||||||
buildInputs = [ qscintilla ];
|
buildInputs = [ qscintilla ];
|
||||||
propagatedBuildInputs = [ pyqt5 ];
|
propagatedBuildInputs = [ pyqt5 ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Python/configure.py \
|
||||||
|
--replace \
|
||||||
|
"target_config.py_module_dir" \
|
||||||
|
"'$out/${python.sitePackages}'"
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
lndir ${pyqt5} $out
|
lndir ${pyqt5} $out
|
||||||
@ -26,6 +33,7 @@ buildPythonPackage {
|
|||||||
--stubsdir=$out/${python.sitePackages}/PyQt5 \
|
--stubsdir=$out/${python.sitePackages}/PyQt5 \
|
||||||
--apidir=$out/api/${python.libPrefix} \
|
--apidir=$out/api/${python.libPrefix} \
|
||||||
--qsci-incdir=${qscintilla}/include \
|
--qsci-incdir=${qscintilla}/include \
|
||||||
|
--qsci-featuresdir=${qscintilla}/mkspecs/features \
|
||||||
--qsci-libdir=${qscintilla}/lib \
|
--qsci-libdir=${qscintilla}/lib \
|
||||||
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
|
--pyqt-sipdir=${pyqt5}/share/sip/PyQt5 \
|
||||||
--qsci-sipdir=$out/share/sip/PyQt5 \
|
--qsci-sipdir=$out/share/sip/PyQt5 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user