Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 28 lines 927 B view raw
1{ stdenv, fetchgit, cmake, expat, proj, bzip2, zlib, boost, postgresql, lua}: 2 3let 4 version = "0.92.1-unstable"; 5in 6stdenv.mkDerivation rec { 7 name = "osm2pgsql-${version}"; 8 9 src = fetchgit { 10 url = "https://github.com/openstreetmap/osm2pgsql.git"; 11 rev = "2b72b2121e91b72b0db6911d65c5165ca46d9d66"; 12 # Still waiting on release after: 13 # https://github.com/openstreetmap/osm2pgsql/pull/684 14 # https://github.com/openstreetmap/osm2pgsql/issues/634 15 #rev = "refs/tags/${version}"; 16 sha256 = "1v6s863zsv9p2mni35gfamawj0xr2cv2p8a31z7sijf8m6fn0vpy"; 17 }; 18 nativeBuildInputs = [cmake]; 19 buildInputs = [expat proj bzip2 zlib boost postgresql lua]; 20 21 meta = { 22 description = "OpenStreetMap data to PostgreSQL converter"; 23 version = "0.92.1-unstable"; 24 homepage = https://github.com/openstreetmap/osm2pgsql; 25 license = stdenv.lib.licenses.gpl2; 26 platforms = stdenv.lib.platforms.linux; 27 }; 28}