nur-packages

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

default.nix (1361B)


      1 { lib, stdenv, fetchurl, routino }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "routinodb";
      5   version = "220502";
      6 
      7   srcs = [
      8     (fetchurl {
      9       url = "https://download.geofabrik.de/europe/finland-${version}.osm.pbf";
     10       hash = "sha256-VWXm4gwL2QJfoFQ6lyc7rIuUmkBSMnM+UvE1zLVkhy4=";
     11     })
     12     (fetchurl {
     13       url = "https://download.geofabrik.de/europe/estonia-${version}.osm.pbf";
     14       hash = "sha256-6Dhotvcz80xnjLyiMd0pDCPdRrPjZ3r8+f7iYluK/fc=";
     15     })
     16     (fetchurl {
     17       url = "https://download.geofabrik.de/russia/northwestern-fed-district-${version}.osm.pbf";
     18       hash = "sha256-cWdAPUh3dFPwyULFVrYhZs/WDwKKRVOr9eMyLEFLE8Q=";
     19     })
     20   ];
     21 
     22   dontUnpack = true;
     23 
     24   installPhase = ''
     25     install -dm755 $out
     26 
     27     for src in $srcs; do
     28       ${routino}/bin/planetsplitter \
     29         --dir=$out \
     30         --prefix=RussiaNW \
     31         --tagging=${routino}/share/routino/tagging.xml \
     32         --parse-only --append $src
     33     done
     34 
     35     ${routino}/bin/planetsplitter \
     36       --dir=$out \
     37       --prefix=RussiaNW \
     38       --tagging=${routino}/share/routino/tagging.xml \
     39       --process-only
     40   '';
     41 
     42   meta = with lib; {
     43     description = "Routino Database (FIN+EST+NWFD)";
     44     homepage = "https://download.geofabrik.de/index.html";
     45     license = licenses.free;
     46     maintainers = [ maintainers.sikmir ];
     47     platforms = platforms.all;
     48     skip.ci = true;
     49   };
     50 }