diff --git a/nix/sources.json b/nix/sources.json
index ca5904f78a7abf242bbdbb6cebfd9d1efa0caa5b..47dafda8e83b0f1cc236e4ca6c654169ed800743 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -246,6 +246,32 @@ "type": "tarball",
"url": "https://github.com/sv99/lsdreader/archive/c78ab22e794f1fbfbc93ffb3ee7ae481f54dd8c2.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"branch": "master",
"builtin": false,
"description": "Slazav mountains",
"homepage": "http://slazav.mccme.ru/maps/",
"owner": "slazav",
"repo": "map_hr",
"rev": "1555f0e49e8b26b5991c6b8ce8ea1f0688b26047",
"sha256": "1ymyyx4z35vicrr5hz12fcjgdy60vfbjfv2m4m154vw4ay7216wa",
"type": "tarball",
"url": "https://github.com/slazav/map_hr/archive/1555f0e49e8b26b5991c6b8ce8ea1f0688b26047.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"branch": "master",
"builtin": false,
"description": "Карты Подмосковья в виде номенклатурных листов 1:100000 - исходники в формате mapsoft vmap",
"homepage": "http://slazav.mccme.ru/maps/",
"owner": "slazav",
"repo": "map_podm",
"rev": "6083ef51c543c4587186acf9792ebc8299554773",
"sha256": "1pww6zkh2wphh595g137xlpqxsrjki7bx1iv437dcsn7gg0a5mh9",
"type": "tarball",
"url": "https://github.com/slazav/map_podm/archive/6083ef51c543c4587186acf9792ebc8299554773.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"mapper": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/data/maps/slazav/0001-fix-hr.patch b/pkgs/data/maps/slazav/0001-fix-hr.patch
new file mode 100644
index 0000000000000000000000000000000000000000..a0c1b0a0eebec290070a05e5621754e97c0b9215
--- /dev/null
+++ b/pkgs/data/maps/slazav/0001-fix-hr.patch
@@ -0,0 +1,62 @@
+diff --git i/Makefile w/Makefile
+index d15480e..5c2a0d1 100644
+--- i/Makefile
++++ w/Makefile
+@@ -9,9 +9,9 @@ sync:
+- mv -f ${IMG_NAME} /home/sla/CH/data/maps/
+- sed -e "/${IMG_NAME}/s/[0-9]{4}-[0-9]{2}-[0-9]{2}/$(date +%F)/"\
+- -i /home/sla/CH/data/maps/index.m4i
++ #mv -f ${IMG_NAME} /home/sla/CH/data/maps/
++ #sed -e "/${IMG_NAME}/s/[0-9]{4}-[0-9]{2}-[0-9]{2}/$(date +%F)/"\
++ # -i /home/sla/CH/data/maps/index.m4i
+diff --git i/bin/make_in.sh w/bin/make_in.sh
+index 84ab728..47c25ec 100755
+--- i/bin/make_in.sh
++++ w/bin/make_in.sh
+@@ -59,7 +59,7 @@ for i in $IN_DIR/.fig $IN_DIR/.mp; do
$sources -o "$vmap"
+- ~/mapsoft/vector/vmap3/vmap_fix_diff "$old" "$vmap" "$vmap"
++ vmap_fix_diff "$old" "$vmap" "$vmap"
+diff --git i/bin/make_out.sh w/bin/make_out.sh
+index 3d8eb2a..7e26b23 100755
+--- i/bin/make_out.sh
++++ w/bin/make_out.sh
+@@ -33,6 +33,7 @@ for i in $VMAP_DIR/*.vmap; do
echo "Updating png: $name"
++ mkdir -p -- "$LAST_PNG_DIR"
[ -s "$png" ] &&
convert "$png" -scale 50% "$LAST_PNG_DIR/${name}_o.png" ||:
+diff --git i/settings.sh w/settings.sh
+index 369dcef..13a7669 100644
+--- i/settings.sh
++++ w/settings.sh
+@@ -5,11 +5,11 @@ export PATH=./:bin/:$PATH
+-export VMAP_DIR=/home/sla/map_hr/vmap
++export VMAP_DIR=vmap
+-export IN_DIR=/home/sla/map_hr/IN
+-export OUT_DIR=/home/sla/map_hr/OUT
++export IN_DIR=IN
++export OUT_DIR=OUT
+\ No newline at end of file
diff --git a/pkgs/data/maps/slazav/0001-fix-podm.patch b/pkgs/data/maps/slazav/0001-fix-podm.patch
new file mode 100644
index 0000000000000000000000000000000000000000..517f2ea78a2914be731fde6b7f18ccf761fe3cc5
--- /dev/null
+++ b/pkgs/data/maps/slazav/0001-fix-podm.patch
@@ -0,0 +1,30 @@
+diff --git i/Makefile w/Makefile
+index 71dc2f7..5b91335 100644
+--- i/Makefile
++++ w/Makefile
+@@ -6,9 +6,9 @@ sync:
+- mv -f podm.img /home/sla/CH/data/maps/
+- sed -e "/podm.img/s/[0-9]{4}-[0-9]{2}-[0-9]{2}/$(date +%F)/"\
+- -i /home/sla/CH/data/maps/index.m4i
++ #mv -f podm.img /home/sla/CH/data/maps/
++ #sed -e "/podm.img/s/[0-9]{4}-[0-9]{2}-[0-9]{2}/$(date +%F)/"\
++ # -i /home/sla/CH/data/maps/index.m4i
+diff --git i/bin/make_in.sh w/bin/make_in.sh
+index 731dcc6..ce3f59f 100755
+--- i/bin/make_in.sh
++++ w/bin/make_in.sh
+@@ -54,7 +54,7 @@ for i in $IN_DIR/.fig $IN_DIR/.mp; do
$sources -o "$vmap"
+- ~/mapsoft/vector/vmap3/vmap_fix_diff "$old" "$vmap" "$vmap"
++ vmap_fix_diff "$old" "$vmap" "$vmap"
diff --git a/pkgs/data/maps/slazav/hr.nix b/pkgs/data/maps/slazav/hr.nix
new file mode 100644
index 0000000000000000000000000000000000000000..a6f848c9854e48f107e0c04b8d29c8fc81b5c535
--- /dev/null
+++ b/pkgs/data/maps/slazav/hr.nix
@@ -0,0 +1,46 @@
+{ stdenv, cgpsmapper, gmaptool, imagemagick, mapsoft, netpbm, zip, sources }:
+stdenv.mkDerivation rec {
--replace "/usr/share/mapsoft" "${mapsoft}/share/mapsoft"
--replace "/usr/share/mapsoft" "${mapsoft}/share/mapsoft"
+}
diff --git a/pkgs/data/maps/slazav/podm.nix b/pkgs/data/maps/slazav/podm.nix
new file mode 100644
index 0000000000000000000000000000000000000000..6bd24ba01ba258422fb7b4963e597c028438fc4d
--- /dev/null
+++ b/pkgs/data/maps/slazav/podm.nix
@@ -0,0 +1,44 @@
+{ stdenv, cgpsmapper, gmaptool, imagemagick, mapsoft, netpbm, zip, sources }:
+stdenv.mkDerivation rec {
--replace "/usr/share/mapsoft" "${mapsoft}/share/mapsoft"
+}
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 9eafb66ccaafe5c15edc0a6b1837731e505890ac..3ff40a8d3b2e278cb7fea79f6bec67f2792f14ef 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -70,6 +70,8 @@ redict = libsForQt5.callPackage ./applications/redict {
inherit sources;
};
sendmap20 = callPackage ./tools/geo/sendmap20 { };
stardict-tools =
# Needed for nixos-19.09
if pkgs ? libmysql
application/octet-stream
This content has been proxied by September (3851b).