commit eb1ac6579bf961665d6a3475471728453919b6c3
parent 80c005f47290de11f39d3d2496cb8d142e793951
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Fri, 3 Apr 2020 10:12:00 +0300
Add qmapshack-routinodb
Diffstat:
3 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/nix/sources.json b/nix/sources.json
@@ -103,6 +103,30 @@
"url": "https://github.com/embox/embox/archive/ad5ed2947ae7ad68e6b0b0400c1a12d1a5114fa2.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
+ "geofabrik-estonia": {
+ "builtin": false,
+ "sha256": "1ivrsnjax92azf3n94xm7shjpfp36m8rfni728v4idw1zjlklgz1",
+ "type": "file",
+ "url": "https://download.geofabrik.de/europe/estonia-200402.osm.pbf",
+ "url_template": "https://download.geofabrik.de/europe/estonia-<version>.osm.pbf",
+ "version": "200402"
+ },
+ "geofabrik-finland": {
+ "builtin": false,
+ "sha256": "0mi5dl154xgpx5x4n1xr7f5q3wv5kc0ggz6gskmd8rvinzwwfasq",
+ "type": "file",
+ "url": "https://download.geofabrik.de/europe/finland-200402.osm.pbf",
+ "url_template": "https://download.geofabrik.de/europe/finland-<version>.osm.pbf",
+ "version": "200402"
+ },
+ "geofabrik-russia-nwfd": {
+ "builtin": false,
+ "sha256": "0f6qmh91rddwv4p53j95hrvdxvk8964kc7358y56gacph7c7h8z9",
+ "type": "file",
+ "url": "https://download.geofabrik.de/russia/northwestern-fed-district-200402.osm.pbf",
+ "url_template": "https://download.geofabrik.de/russia/northwestern-fed-district-<version>.osm.pbf",
+ "version": "200402"
+ },
"gimgtools": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/data/maps/qmapshack-routinodb/default.nix b/pkgs/data/maps/qmapshack-routinodb/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, sources, routino }:
+
+stdenv.mkDerivation rec {
+ pname = "qmapshack-routinodb";
+ version = "2020-04-02";
+ srcs = [
+ sources.geofabrik-finland
+ sources.geofabrik-estonia
+ sources.geofabrik-russia-nwfd
+ ];
+
+ preferLocalBuild = true;
+
+ dontUnpack = true;
+
+ installPhase = ''
+ install -dm755 "$out/share/qmapshack/Routino"
+
+ for src in $srcs; do
+ ${routino}/bin/planetsplitter \
+ --dir="$out/share/qmapshack/Routino" \
+ --prefix=RussiaNW \
+ --tagging=${routino}/share/routino/tagging.xml \
+ --parse-only --append $src
+ done
+
+ ${routino}/bin/planetsplitter \
+ --dir="$out/share/qmapshack/Routino" \
+ --prefix=RussiaNW \
+ --tagging=${routino}/share/routino/tagging.xml \
+ --process-only
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Routino Database";
+ homepage = "https://download.geofabrik.de/index.html";
+ license = licenses.free;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -77,6 +77,7 @@ lib.makeScope newScope (
inherit sources;
};
qmapshack-onlinemaps = callPackage ./data/maps/qmapshack-onlinemaps {};
+ qmapshack-routinodb = callPackage ./data/maps/qmapshack-routinodb {};
redict = libsForQt5.callPackage ./applications/redict {
inherit sources;
};