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