git.iko.soy/typeable/nixpkgs
on master help sign in
qgis: 3.10.13 -> 3.16.5

The file has been reformated using nixpkgs-fmt.

commitf8da9ce9fc90ea884cab89b8d15d87b34950a82e authorLancelot SIX <lsix@lancelotsix.com> dateTue 13 Apr 2021, 21:50 (6 years ago) parent5268ee2
1 file changed+61−25
pkgs/applications/gis/qgis/unwrapped.nix+61−25
pkgs/applications/gis/qgis/unwrapped.nix+61−25
@@ -1,25 +1,38 @@
1−{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
2−, qwt, fcgi, python3Packages, libspatialindex, libspatialite, postgresql
3−, txt2tags, openssl, libzip, hdf5, netcdf, exiv2
4−, qtbase, qtsensors, qca-qt5, qtkeychain, qscintilla, qtserialport, qtxmlpatterns
5−, withGrass ? true, grass
6−, withWebKit ? true, qtwebkit
7−}:
1+{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, flex, bison, proj, geos
2+, xlibsWrapper, sqlite, gsl, qwt, fcgi, python3Packages, libspatialindex
3+, libspatialite, postgresql, txt2tags, openssl, libzip, hdf5, netcdf, exiv2
4+, protobuf, qtbase, qtsensors, qca-qt5, qtkeychain, qscintilla, qtserialport
5+, qtxmlpatterns, withGrass ? true, grass, withWebKit ? true, qtwebkit }:
86with lib;
97let
10− pythonBuildInputs = with python3Packages;
11− [ qscintilla-qt5 gdal jinja2 numpy psycopg2
12− chardet dateutil pyyaml pytz requests urllib3 pygments pyqt5 sip owslib six ];
8+ pythonBuildInputs = with python3Packages; [
9+ qscintilla-qt5
10+ gdal
11+ jinja2
12+ numpy
13+ psycopg2
14+ chardet
15+ dateutil
16+ pyyaml
17+ pytz
18+ requests
19+ urllib3
20+ pygments
21+ pyqt5
22+ sip
23+ owslib
24+ six
25+ ];
1326in mkDerivation rec {
14− version = "3.10.13";
27+ version = "3.16.5";
1528 pname = "qgis";
1629 name = "${pname}-unwrapped-${version}";
1730
1831 src = fetchFromGitHub {
1932 owner = "qgis";
2033 repo = "QGIS";
21− rev = "final-${lib.replaceStrings ["."] ["_"] version}";
22− sha256 = "0za77znk1phrxzy2cgxpwrld3d0pi0xvhsg78rg4wkb23vaqv6zb";
34+ rev = "final-${lib.replaceStrings [ "." ] [ "_" ] version}";
35+ sha256 = "1xkvgj1v2jgp107jyh9xmk1dzbbqxwkqy69z56vsaa8lf9gwgn5h";
2336 };
2437
2538 passthru = {
@@ -27,10 +40,32 @@ in mkDerivation rec {
2740 inherit python3Packages;
2841 };
2942
30− buildInputs = [ openssl proj geos xlibsWrapper sqlite gsl qwt exiv2
31− fcgi libspatialindex libspatialite postgresql txt2tags libzip hdf5 netcdf
32− qtbase qtsensors qca-qt5 qtkeychain qscintilla qtserialport qtxmlpatterns ]
33− ++ lib.optional withGrass grass
43+ buildInputs = [
44+ openssl
45+ proj
46+ geos
47+ xlibsWrapper
48+ sqlite
49+ gsl
50+ qwt
51+ exiv2
52+ protobuf
53+ fcgi
54+ libspatialindex
55+ libspatialite
56+ postgresql
57+ txt2tags
58+ libzip
59+ hdf5
60+ netcdf
61+ qtbase
62+ qtsensors
63+ qca-qt5
64+ qtkeychain
65+ qscintilla
66+ qtserialport
67+ qtxmlpatterns
68+ ] ++ lib.optional withGrass grass
3469 ++ lib.optional withWebKit qtwebkit
3570 ++ pythonBuildInputs;
3671
@@ -41,15 +76,16 @@ in mkDerivation rec {
4176 # TODO: Correct PyQt5 to provide the expected directory and fix
4277 # build to use PYQT5_SIP_DIR consistently.
4378 postPatch = ''
44− substituteInPlace cmake/FindPyQt5.py \
45− --replace 'sip_dir = cfg.default_sip_dir' 'sip_dir = "${python3Packages.pyqt5}/share/sip/PyQt5"'
46− '';
79+ substituteInPlace cmake/FindPyQt5.py \
80+ --replace 'sip_dir = cfg.default_sip_dir' 'sip_dir = "${python3Packages.pyqt5}/share/sip/PyQt5"'
81+ '';
4782
48− cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
49− "-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
50− "-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5" ]
51− ++ lib.optional (!withWebKit) "-DWITH_QTWEBKIT=OFF"
52− ++ lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";
83+ cmakeFlags = [
84+ "-DCMAKE_SKIP_BUILD_RPATH=OFF"
85+ "-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
86+ "-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5"
87+ ] ++ lib.optional (!withWebKit) "-DWITH_QTWEBKIT=OFF"
88+ ++ lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";
5389
5490 meta = {
5591 description = "A Free and Open Source Geographic Information System";