nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (4768B)


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