default.nix (578B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 osmctools, 6 osm-3s, 7 osm-extracts, 8 }: 9 10 stdenv.mkDerivation { 11 pname = "overpassdb"; 12 inherit (osm-extracts) version; 13 14 dontUnpack = true; 15 16 nativeBuildInputs = [ 17 osmctools 18 osm-3s 19 ]; 20 21 installPhase = '' 22 install -dm755 $out 23 24 osmconvert ${osm-extracts}/RU-LEN.osm.pbf --out-osm | \ 25 update_database --db-dir=$out --meta 26 ''; 27 28 meta = { 29 description = "Overpass Database"; 30 license = lib.licenses.free; 31 maintainers = [ lib.maintainers.sikmir ]; 32 platforms = lib.platforms.all; 33 skip.ci = true; 34 }; 35 }