package.nix (907B)
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 __structuredAttrs = true; 15 16 dontUnpack = true; 17 18 nativeBuildInputs = [ routino ]; 19 20 installPhase = '' 21 install -dm755 $out 22 23 for region in RU-{ARK,KO,KR,LEN,MUR,NEN,NGR,PSK,SPE,VLG}; do 24 planetsplitter \ 25 --dir=$out \ 26 --prefix=${prefix} \ 27 --tagging=${routino}/share/routino/tagging.xml \ 28 --parse-only --append ${osm-extracts}/$region.osm.pbf 29 done 30 31 planetsplitter \ 32 --dir=$out \ 33 --prefix=${prefix} \ 34 --tagging=${routino}/share/routino/tagging.xml \ 35 --process-only 36 ''; 37 38 meta = { 39 description = "Routino Database"; 40 license = lib.licenses.free; 41 maintainers = [ lib.maintainers.sikmir ]; 42 platforms = lib.platforms.all; 43 skip.ci = true; 44 }; 45 }
