default.nix (4741B)
1 { lib, fetchurl, fetchymaps, fetchwebarchive, jq, gdal }: 2 3 { 4 geocachingSu = fetchwebarchive { 5 name = "geocaching_su-2023-10-26"; 6 url = "https://nakarte.me/geocachingSu/geocaching_su2.json"; 7 timestamp = "20231026111612"; 8 hash = "sha256-gZv5Ygd5XRrt45k3LLbts9B64tEhOWETm8iHld/NlxA="; 9 downloadToTemp = true; 10 recursiveHash = true; 11 postFetch = '' 12 install -dm755 $out 13 cat $downloadedFile | \ 14 ${jq}/bin/jq -r '.[]|[.[3],.[2],.[0]]|@csv' > $out/geocaching.su.csv 15 ''; 16 17 meta = with lib; { 18 homepage = "https://geocaching.su/"; 19 description = "Geocaches"; 20 maintainers = [ maintainers.sikmir ]; 21 license = licenses.free; 22 platforms = platforms.all; 23 }; 24 }; 25 26 laavut = fetchurl { 27 name = "laavut-2021-11-16"; 28 url = "http://laavu.org/lataa.php?paikkakunta=kaikki"; 29 hash = "sha256-cazLb7IE1UkUlxbXS1AI3INM/yqZlKd4j8cWehYsmSo="; 30 downloadToTemp = true; 31 recursiveHash = true; 32 postFetch = "install -Dm644 $downloadedFile $out/Laavut-kodat.gpx"; 33 34 meta = with lib; { 35 homepage = "http://laavu.org/"; 36 description = "Laavut ja kodat kartalla"; 37 maintainers = [ maintainers.sikmir ]; 38 license = licenses.free; 39 platforms = platforms.all; 40 skip.ci = true; 41 }; 42 }; 43 44 autiotuvat = fetchurl { 45 name = "autiotuvat-2021-11-10"; 46 url = "http://www.laavu.org/autiotuvat/lataa.php?paikkakunta=kaikki"; 47 hash = "sha256-Brjh07b0VLhtnukqkRUym/DX30Fygc736ZKnOu6liMU="; 48 downloadToTemp = true; 49 recursiveHash = true; 50 postFetch = "install -Dm644 $downloadedFile $out/Autiotuvat.gpx"; 51 52 meta = with lib; { 53 homepage = "http://www.laavu.org/autiotuvat/"; 54 description = "Autiotuvat kartalla"; 55 maintainers = [ maintainers.sikmir ]; 56 license = licenses.free; 57 platforms = platforms.all; 58 skip.ci = true; 59 }; 60 }; 61 62 westra = fetchwebarchive { 63 name = "westra-2023-10-26"; 64 url = "https://nakarte.me/westraPasses/westra_passes.json"; 65 timestamp = "20231026111946"; 66 hash = "sha256-3GMpVeXHjMenLnUwl/VIyAxoznJ3wcY1DAxGe2aD6w0="; 67 downloadToTemp = true; 68 recursiveHash = true; 69 postFetch = '' 70 install -dm755 $out 71 cat $downloadedFile | \ 72 ${jq}/bin/jq -r '.[]|[.latlon[1],.latlon[0],.name]|@csv' > $out/westra_passes.csv 73 ''; 74 75 meta = with lib; { 76 homepage = "https://westra.ru/passes/"; 77 description = "Mountain passes (Westra)"; 78 maintainers = [ maintainers.sikmir ]; 79 license = licenses.free; 80 platforms = platforms.all; 81 }; 82 }; 83 84 strelki = fetchurl { 85 name = "strelki-2022-01-31"; 86 url = "https://strelki.extremum.org/s/p/47p"; 87 hash = "sha256-p+KYOaEJCQAwEQSl4VPdxxK6Kt/QLPlRHNbxi/RVrj0="; 88 downloadToTemp = true; 89 recursiveHash = true; 90 postFetch = '' 91 install -dm755 $out 92 cat $downloadedFile | \ 93 grep "L.marker" | tr ';' '\n' | sed '/^$/d' | \ 94 sed 's/.*\[\(.*\), \(.*\)\].*bindTooltip(\(.*\), {.*bindPopup(\(.*\)).addTo.*/\2,\1,\3,\4/' | \ 95 sed 's#href=#href=https://strelki.extremum.org#' | \ 96 tr \' \" > $out/strelki.csv 97 ''; 98 99 meta = with lib; { 100 homepage = "https://strelki.extremum.org/s/p/47p"; 101 description = "Стрелки-47"; 102 maintainers = [ maintainers.sikmir ]; 103 license = licenses.free; 104 platforms = platforms.all; 105 }; 106 }; 107 108 nashipohody = fetchurl { 109 name = "nashipohody-2020-07-23"; 110 url = "http://nashipohody.ru/wp-content/plugins/leaflet-maps-marker-pro/leaflet-kml.php?layer=1&name=show"; 111 sha256 = "1bp0f125yz91x7pridzs4ggvvny98790lb1ddrnwzbwjn1v756c4"; 112 downloadToTemp = true; 113 recursiveHash = true; 114 postFetch = "install -Dm644 $downloadedFile $out/nashipohody.kml"; 115 116 meta = with lib; { 117 homepage = "http://nashipohody.ru"; 118 description = "Карта Достопримечательностей"; 119 maintainers = [ maintainers.sikmir ]; 120 license = licenses.free; 121 platforms = platforms.all; 122 }; 123 }; 124 125 novgorod-roads = fetchymaps { 126 name = "novgorod-roads-2013-06-05"; 127 um = "_WjokOS8OVNds5FVsSPwRN_dXQFBv99B"; 128 hash = "sha256-cN/iJ7aV4329UU5Qbfwp16K7yCU15ZOKQu8DnBbJE1M="; 129 downloadToTemp = true; 130 recursiveHash = true; 131 postFetch = '' 132 ${gdal}/bin/ogr2ogr novgorod-roads.geojson $downloadedFile 133 install -Dm644 novgorod-roads.geojson -t $out 134 ''; 135 136 meta = with lib; { 137 homepage = "https://yandex.ru/maps/-/CCUER2fZpD"; 138 description = "Магистральные дороги Северо-Запада Новгородской земли"; 139 maintainers = [ maintainers.sikmir ]; 140 license = licenses.free; 141 platforms = platforms.all; 142 skip.ci = true; 143 }; 144 }; 145 }