nur-packages

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

default.nix (878B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchurl,
      5   routino,
      6   osm-extracts,
      7   prefix ? "Russia-NWFD",
      8 }:
      9 
     10 stdenv.mkDerivation {
     11   pname = "routinodb";
     12   inherit (osm-extracts) version;
     13 
     14   dontUnpack = true;
     15 
     16   nativeBuildInputs = [ routino ];
     17 
     18   installPhase = ''
     19     install -dm755 $out
     20 
     21     for region in RU-{ARK,KO,KR,LEN,MUR,NEN,NGR,PSK,SPE,VLG}; do
     22       planetsplitter \
     23         --dir=$out \
     24         --prefix=${prefix} \
     25         --tagging=${routino}/share/routino/tagging.xml \
     26         --parse-only --append ${osm-extracts}/$region.osm.pbf
     27     done
     28 
     29     planetsplitter \
     30       --dir=$out \
     31       --prefix=${prefix} \
     32       --tagging=${routino}/share/routino/tagging.xml \
     33       --process-only
     34   '';
     35 
     36   meta = {
     37     description = "Routino Database";
     38     license = lib.licenses.free;
     39     maintainers = [ lib.maintainers.sikmir ];
     40     platforms = lib.platforms.all;
     41     skip.ci = true;
     42   };
     43 }