git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #124299 from dotlambda/qmapshack-1.16.0

GIS: random bumps

commit7731f618b7536ce510f6e7ebd9581251d704c956 authorlsix <lsix+github@lancelotsix.com> dateFri 28 May 2021, 13:46 (5 years ago) parent491a0bb103d945
11 files changed+144−177
pkgs/applications/gis/qgis/unwrapped.nix+2−2 pkgs/applications/gis/qmapshack/default.nix+2−9 pkgs/applications/gis/qmapshack/pr350-support-quazip-1x.patch−141 pkgs/build-support/fetchgitea/default.nix+7 pkgs/development/libraries/librttopo/default.nix+32 pkgs/development/libraries/libspatialite/default.nix+31−11 pkgs/development/libraries/proj/default.nix+28−4 pkgs/development/libraries/spatialite-tools/default.nix+34−8 pkgs/development/python-modules/pyproj/default.nix+2−2 pkgs/development/python-modules/python-mapnik/default.nix+2 pkgs/top-level/all-packages.nix+4
pkgs/applications/gis/qgis/unwrapped.nix+2−2
@@ -24,7 +24,7 @@ let
2424 six
2525 ];
2626in mkDerivation rec {
27− version = "3.16.6";
27+ version = "3.16.7";
2828 pname = "qgis";
2929 name = "${pname}-unwrapped-${version}";
3030
@@ -32,7 +32,7 @@ in mkDerivation rec {
3232 owner = "qgis";
3333 repo = "QGIS";
3434 rev = "final-${lib.replaceStrings [ "." ] [ "_" ] version}";
35− sha256 = "1vnz5kiyjircmhn4vq3fa5j2kvkxpwcsry7jc6nxl0w0dqx1zay1";
35+ sha256 = "0yvb2w83dplh0my72xljglq9a4a7qkfliwslav26lw4yqxr8mr0p";
3636 };
3737
3838 passthru = {
pkgs/applications/gis/qmapshack/default.nix+2−9
@@ -3,13 +3,13 @@
33
44mkDerivation rec {
55 pname = "qmapshack";
6− version = "1.15.2";
6+ version = "1.16.0";
77
88 src = fetchFromGitHub {
99 owner = "Maproom";
1010 repo = pname;
1111 rev = "V_${version}";
12− sha256 = "1l1j2axf94pdqwirwwhwy3y6k8v1aix78ifqbv6j8sv131h2j7y7";
12+ sha256 = "1yzgkdjxwyg8ggbxyjwr0zjrx99ckrbz2p2524iii9i7qqn8wfsx";
1313 };
1414
1515 nativeBuildInputs = [ cmake ];
@@ -20,13 +20,6 @@ mkDerivation rec {
2020 "-DROUTINO_XML_PATH=${routino}/share/routino"
2121 ];
2222
23− patches = [
24− "${src}/FindPROJ4.patch"
25−
26− # Support QuaZip 1.x.
27− ./pr350-support-quazip-1x.patch
28− ];
29−
3023 qtWrapperArgs = [
3124 "--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
3225 ];
pkgs/applications/gis/qmapshack/pr350-support-quazip-1x.patchdeleted−141
@@ -1,141 +0,0 @@
1−From 8fb751c656a14020ba37fb91b7f7cba3c49d8504 Mon Sep 17 00:00:00 2001
2−From: kiozen <oliver.eichler@gmx.de>
3−Date: Sat, 20 Mar 2021 12:14:29 +0100
4−Subject: [PATCH] [QMS-349] Upgrade to Quazip Qt5 V1.x
5−
6−Simply adjusted the cmake scripts
7−---
8− CMakeLists.txt | 2 +-
9− src/qmapshack/CMakeLists.txt | 27 +++++++++++++--------------
10− 3 files changed, 15 insertions(+), 15 deletions(-)
11−
12−diff --git a/CMakeLists.txt b/CMakeLists.txt
13−index 8d2cf127..7420d9b2 100644
14−--- a/CMakeLists.txt
15−+++ b/CMakeLists.txt
16−@@ -152,7 +152,7 @@ find_package(GDAL REQUIRED)
17− find_package(PROJ REQUIRED)
18− find_package(JPEG REQUIRED)
19− find_package(ROUTINO REQUIRED)
20−-find_package(QuaZip5 REQUIRED)
21−+find_package(QuaZip-Qt5 REQUIRED)
22− find_package(ALGLIB ) # optional as we can use our local version
23−
24−
25−diff --git a/src/qmapshack/CMakeLists.txt b/src/qmapshack/CMakeLists.txt
26−index 08eeb183..9b3836d6 100644
27−--- a/src/qmapshack/CMakeLists.txt
28−+++ b/src/qmapshack/CMakeLists.txt
29−@@ -22,8 +22,8 @@ add_definitions(-DROUTINO_XML_PATH=${ROUTINO_XML_PATH})
30− # All source files needed to compile
31− ###############################################################################################
32−
33−-set( SRCS
34−- CAbout.cpp
35−+set( SRCS
36−+ CAbout.cpp
37− CMainWindow.cpp
38− CSingleInstanceProxy.cpp
39− canvas/CCanvas.cpp
40−@@ -160,7 +160,7 @@ set( SRCS
41− gis/trk/CInvalidTrk.cpp
42− gis/trk/CKnownExtension.cpp
43− gis/trk/CListTrkPts.cpp
44−- gis/trk/CPropertyTrk.cpp
45−+ gis/trk/CPropertyTrk.cpp
46− gis/trk/CScrOptTrk.cpp
47− gis/trk/CSelectActivityColor.cpp
48− gis/trk/CTableTrk.cpp
49−@@ -272,7 +272,7 @@ set( SRCS
50− mouse/line/CLineOpMovePoint.cpp
51− mouse/line/CLineOpSelectRange.cpp
52− mouse/line/CScrOptEditLine.cpp
53−- mouse/line/CScrOptRangeLine.cpp
54−+ mouse/line/CScrOptRangeLine.cpp
55− mouse/line/ILineOp.cpp
56− mouse/line/IMouseEditLine.cpp
57− plot/CPlot.cpp
58−@@ -401,7 +401,7 @@ set( HDRS
59− gis/CGisListDB.h
60− gis/CGisListWks.h
61− gis/CGisWorkspace.h
62−- gis/CSelDevices.h
63−+ gis/CSelDevices.h
64− gis/IGisItem.h
65− gis/IGisLine.h
66− gis/Poi.h
67−@@ -512,7 +512,7 @@ set( HDRS
68− gis/trk/CInvalidTrk.h
69− gis/trk/CKnownExtension.h
70− gis/trk/CListTrkPts.h
71−- gis/trk/CPropertyTrk.h
72−+ gis/trk/CPropertyTrk.h
73− gis/trk/CScrOptTrk.h
74− gis/trk/CSelectActivityColor.h
75− gis/trk/CTableTrk.h
76−@@ -579,7 +579,7 @@ set( HDRS
77− map/CMapList.h
78− map/CMapMAP.h
79− map/CMapPathSetup.h
80−- map/CMapPropSetup.h
81−+ map/CMapPropSetup.h
82− map/CMapRMAP.h
83− map/CMapTMS.h
84− map/CMapVRT.h
85−@@ -655,7 +655,7 @@ set( HDRS
86− realtime/CRtSelectSource.h
87− realtime/CRtWorkspace.h
88− realtime/IRtInfo.h
89−- realtime/IRtRecord.h
90−+ realtime/IRtRecord.h
91− realtime/IRtSource.h
92− realtime/gpstether/CRtGpsTether.h
93− realtime/gpstether/CRtGpsTetherInfo.h
94−@@ -764,7 +764,7 @@ set( UIS
95− gis/search/IGeoSearchWebConfigDialog.ui
96− gis/search/ISearchExplanationDialog.ui
97− gis/summary/IGisSummary.ui
98−- gis/summary/IGisSummarySetup.ui
99−+ gis/summary/IGisSummarySetup.ui
100− gis/trk/ICombineTrk.ui
101− gis/trk/ICutTrk.ui
102− gis/trk/IDetailsTrk.ui
103−@@ -818,7 +818,7 @@ set( UIS
104− mouse/range/IActionSelect.ui
105− mouse/range/IRangeToolSetup.ui
106− mouse/range/IScrOptRangeTool.ui
107−- mouse/range/IScrOptRangeTrk.ui
108−+ mouse/range/IScrOptRangeTrk.ui
109− mouse/IScrOptRuler.ui
110− mouse/IScrOptSelect.ui
111− mouse/line/IScrOptEditLine.ui
112−@@ -899,7 +899,6 @@ include_directories(
113− ${PROJ_INCLUDE_DIRS}
114− ${ROUTINO_INCLUDE_DIRS}
115− ${ALGLIB_INCLUDE_DIRS}
116−- ${QUAZIP_INCLUDE_DIRS}
117− )
118−
119− if(APPLE)
120−@@ -934,10 +933,10 @@ endif(Qt5DBus_FOUND)
121−
122− target_link_libraries(${APPLICATION_NAME}
123− Qt5::Widgets
124−- Qt5::Xml
125−+ Qt5::Xml
126− Qt5::Sql
127− Qt5::PrintSupport
128−- Qt5::UiTools
129−+ Qt5::UiTools
130− Qt5::Network
131− Qt5::WebEngineWidgets
132− Qt5::Qml
133−@@ -947,7 +946,7 @@ target_link_libraries(${APPLICATION_NAME}
134− ${PROJ_LIBRARIES}
135− ${ROUTINO_LIBRARIES}
136− ${ALGLIB_LIBRARIES}
137−- ${QUAZIP_LIBRARIES}
138−+ QuaZip::QuaZip
139− )
140−
141− if(APPLE)
pkgs/build-support/fetchgitea/default.nixnew file+7
@@ -0,0 +1,7 @@
1+# Gitea's URLs are compatible with GitHub
2+
3+{ lib, fetchFromGitHub }:
4+
5+{ domain, ... }@args:
6+
7+fetchFromGitHub ((removeAttrs args [ "domain" ]) // { githubBase = domain; })
pkgs/development/libraries/librttopo/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib
2+, stdenv
3+, fetchFromGitea
4+, autoreconfHook
5+, geos
6+}:
7+
8+stdenv.mkDerivation rec {
9+ pname = "librttopo";
10+ version = "1.1.0";
11+
12+ outputs = [ "out" "dev" ];
13+
14+ src = fetchFromGitea {
15+ domain = "git.osgeo.org/gitea";
16+ owner = "rttopo";
17+ repo = "librttopo";
18+ rev = "librttopo-${version}";
19+ sha256 = "0h7lzlkn9g4xky6h81ndy0aa6dxz8wb6rnl8v3987jy1i6pr072p";
20+ };
21+
22+ nativeBuildInputs = [ autoreconfHook ];
23+
24+ buildInputs = [ geos ];
25+
26+ meta = with lib; {
27+ description = "RT Topology Library";
28+ homepage = "https://git.osgeo.org/gitea/rttopo/librttopo";
29+ license = licenses.gpl2Plus;
30+ maintainers = with maintainers; [ dotlambda ];
31+ };
32+}
pkgs/development/libraries/libspatialite/default.nix+31−11
@@ -1,34 +1,54 @@
1−{ stdenv, lib, fetchurl, pkg-config, libxml2, sqlite, zlib, proj, geos, libiconv }:
2−
3−with lib;
1+{ lib
2+, stdenv
3+, fetchurl
4+, pkg-config
5+, geos
6+, librttopo
7+, libxml2
8+, minizip
9+, proj
10+, sqlite
11+, libiconv
12+}:
413
514stdenv.mkDerivation rec {
6− name = "libspatialite-4.3.0a";
15+ pname = "libspatialite";
16+ version = "5.0.1";
17+
18+ outputs = [ "out" "dev" ];
719
820 src = fetchurl {
9− url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
10− sha256 = "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448";
21+ url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/${pname}-${version}.tar.gz";
22+ sha256 = "sha256-7svJQxHHgBLQWevA+uhupe9u7LEzA+boKzdTwbNAnpg=";
1123 };
1224
1325 nativeBuildInputs = [ pkg-config ];
1426
15− buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
27+ buildInputs = [
28+ geos
29+ librttopo
30+ libxml2
31+ minizip
32+ proj
33+ sqlite
34+ ] ++ lib.optionals stdenv.isDarwin [
35+ libiconv
36+ ];
1637
1738 configureFlags = [ "--disable-freexl" ];
1839
1940 enableParallelBuilding = true;
2041
21− CFLAGS = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";
22−
23− postInstall = "" + optionalString stdenv.isDarwin ''
42+ postInstall = lib.optionalString stdenv.isDarwin ''
2443 ln -s $out/lib/mod_spatialite.{so,dylib}
2544 '';
2645
27− meta = {
46+ meta = with lib; {
2847 description = "Extensible spatial index library in C++";
2948 homepage = "https://www.gaia-gis.it/fossil/libspatialite";
3049 # They allow any of these
3150 license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
3251 platforms = platforms.unix;
52+ maintainers = with maintainers; [ dotlambda ];
3353 };
3454}
pkgs/development/libraries/proj/default.nix+28−4
@@ -1,4 +1,13 @@
1−{ lib, stdenv, fetchFromGitHub, pkg-config, sqlite, autoreconfHook, libtiff, curl }:
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, cmake
5+, pkg-config
6+, sqlite
7+, libtiff
8+, curl
9+, gtest
10+}:
211
312stdenv.mkDerivation rec {
413 pname = "proj";
@@ -11,19 +20,34 @@ stdenv.mkDerivation rec {
1120 sha256 = "0mymvfvs8xggl4axvlj7kc1ksd9g94kaz6w1vdv0x2y5mqk93gx9";
1221 };
1322
23+ postPatch = lib.optionalString (version == "7.2.1") ''
24+ substituteInPlace CMakeLists.txt \
25+ --replace "MAJOR 7 MINOR 2 PATCH 0" "MAJOR 7 MINOR 2 PATCH 1"
26+ '';
27+
1428 outputs = [ "out" "dev"];
1529
16− nativeBuildInputs = [ pkg-config autoreconfHook ];
30+ nativeBuildInputs = [ cmake pkg-config ];
1731
1832 buildInputs = [ sqlite libtiff curl ];
1933
34+ checkInputs = [ gtest ];
35+
36+ cmakeFlags = [
37+ "-DUSE_EXTERNAL_GTEST=ON"
38+ ];
39+
2040 doCheck = stdenv.is64bit;
2141
42+ preCheck = ''
43+ export HOME=$TMPDIR
44+ '';
45+
2246 meta = with lib; {
2347 description = "Cartographic Projections Library";
2448 homepage = "https://proj4.org";
2549 license = licenses.mit;
26− platforms = platforms.linux ++ platforms.darwin;
27− maintainers = with maintainers; [ vbgl ];
50+ platforms = platforms.unix;
51+ maintainers = with maintainers; [ vbgl dotlambda ];
2852 };
2953}
pkgs/development/libraries/spatialite-tools/default.nix+34−8
@@ -1,15 +1,40 @@
1−{ lib, stdenv, fetchurl, pkg-config, sqlite, expat, zlib, proj, geos, libspatialite, readosm }:
1+{ lib
2+, stdenv
3+, fetchurl
4+, pkg-config
5+, geos
6+, expat
7+, librttopo
8+, libspatialite
9+, libxml2
10+, minizip
11+, proj
12+, readosm
13+, sqlite
14+}:
215
316stdenv.mkDerivation rec {
4− name = "spatialite-tools-4.1.1";
17+ pname = "spatialite-tools";
18+ version = "5.0.0";
519
620 src = fetchurl {
7− url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/${name}.tar.gz";
8− sha256 = "14aqmhvab63ydbb82fglsbig7jw1wmci8jjvci07aavdhvh1pyrv";
21+ url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/${pname}-${version}.tar.gz";
22+ sha256 = "0ckddgdpxhy6vkpr9q2hnx5qmanrd8g4pqnifbrq1i5jrj82s2dd";
923 };
1024
1125 nativeBuildInputs = [ pkg-config ];
12− buildInputs = [ sqlite expat zlib proj geos libspatialite readosm ];
26+
27+ buildInputs = [
28+ expat
29+ geos
30+ librttopo
31+ libspatialite
32+ libxml2
33+ minizip
34+ proj
35+ readosm
36+ sqlite
37+ ];
1338
1439 configureFlags = [ "--disable-freexl" ];
1540
@@ -17,10 +42,11 @@ stdenv.mkDerivation rec {
1742
1843 NIX_LDFLAGS = "-lsqlite3";
1944
20− meta = {
45+ meta = with lib; {
2146 description = "A complete sqlite3-compatible CLI front-end for libspatialite";
2247 homepage = "https://www.gaia-gis.it/fossil/spatialite-tools";
23− license = with lib.licenses; [ mpl11 gpl2Plus lgpl21Plus ];
24− platforms = lib.platforms.linux;
48+ license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
49+ platforms = platforms.linux;
50+ maintainers = with maintainers; [ dotlambda ];
2551 };
2652}
pkgs/development/python-modules/pyproj/default.nix+2−2
@@ -17,14 +17,14 @@
1717
1818buildPythonPackage rec {
1919 pname = "pyproj";
20− version = "3.0.1";
20+ version = "3.1.0";
2121 disabled = pythonOlder "3.7";
2222
2323 src = fetchFromGitHub {
2424 owner = "pyproj4";
2525 repo = "pyproj";
2626 rev = version;
27− sha256 = "1q1i1235cp3k32dpb11r7krx5rpqwszb89mrx85rflc1z5acaj58";
27+ sha256 = "sha256-UN8cJk5Lgd+d2tKmFuF6QvKr36w1435RKovzGfMXi1E=";
2828 };
2929
3030 # force pyproj to use ${proj}
pkgs/development/python-modules/python-mapnik/default.nix+2
@@ -63,6 +63,8 @@ in buildPythonPackage rec {
6363 ]);
6464 propagatedBuildInputs = [ pillow pycairo ];
6565
66+ pythonImportsCheck = [ "mapnik" ] ;
67+
6668 meta = with lib; {
6769 description = "Python bindings for Mapnik";
6870 homepage = "https://mapnik.org";
pkgs/top-level/all-packages.nix+4
@@ -558,6 +558,8 @@ in
558558
559559 fetchCrate = callPackage ../build-support/rust/fetchcrate.nix { };
560560
561+ fetchFromGitea = callPackage ../build-support/fetchgitea { };
562+
561563 fetchFromGitHub = callPackage ../build-support/fetchgithub {};
562564
563565 fetchFromBitbucket = callPackage ../build-support/fetchbitbucket {};
@@ -16591,6 +16593,8 @@ in
1659116593
1659216594 librsync_0_9 = callPackage ../development/libraries/librsync/0.9.nix { };
1659316595
16596+ librttopo = callPackage ../development/libraries/librttopo { };
16597+
1659416598 libs3 = callPackage ../development/libraries/libs3 { };
1659516599
1659616600 libschrift = callPackage ../development/libraries/libschrift { };