nur-packages

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

default.nix (1032B)


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