Merge pull request #250044 from sikmir/osm2pgsql

osm2pgsql: 1.8.1 → 1.9.0

authored by

Nikolay Korotkiy and committed by
GitHub
d680ded2 b107015d

+21 -13
+21 -13
pkgs/tools/misc/osm2pgsql/default.nix
··· 2 , fetchFromGitHub 3 , cmake 4 , expat 5 - , fetchpatch 6 , fmt 7 , proj 8 , bzip2 9 , zlib 10 , boost 11 , postgresql 12 , withLuaJIT ? false 13 , lua 14 , luajit 15 , libosmium 16 , protozero 17 , testers 18 }: 19 20 stdenv.mkDerivation (finalAttrs: { 21 pname = "osm2pgsql"; 22 - version = "1.8.1"; 23 24 src = fetchFromGitHub { 25 owner = "openstreetmap"; 26 repo = "osm2pgsql"; 27 rev = finalAttrs.version; 28 - hash = "sha256-8Jefd8dfoh/an7wd+8iTM0uOKA4UiUo8t2WzZs4r/Ck="; 29 }; 30 31 - patches = [ 32 - # Fix compatiblity with fmt 10.0. Remove with the next release 33 - (fetchpatch { 34 - url = "https://github.com/openstreetmap/osm2pgsql/commit/37aae6c874b58cd5cd27e70b2b433d6624fd7498.patch"; 35 - hash = "sha256-Fv2zPqhRDoJXlqB1Q9q5iskn28iqq3TYPcdqfu/pvD4="; 36 - }) 37 - ]; 38 - 39 postPatch = '' 40 # Remove bundled libraries 41 rm -r contrib ··· 43 44 nativeBuildInputs = [ cmake ]; 45 46 - buildInputs = [ expat fmt proj bzip2 zlib boost postgresql libosmium protozero ] 47 - ++ lib.optional withLuaJIT luajit 48 ++ lib.optional (!withLuaJIT) lua; 49 50 cmakeFlags = [ ··· 52 "-DEXTERNAL_PROTOZERO=ON" 53 "-DEXTERNAL_FMT=ON" 54 ] ++ lib.optional withLuaJIT "-DWITH_LUAJIT:BOOL=ON"; 55 56 passthru.tests.version = testers.testVersion { 57 package = finalAttrs.finalPackage;
··· 2 , fetchFromGitHub 3 , cmake 4 , expat 5 , fmt 6 , proj 7 , bzip2 8 , zlib 9 , boost 10 + , cimg 11 , postgresql 12 , withLuaJIT ? false 13 , lua 14 , luajit 15 , libosmium 16 + , nlohmann_json 17 + , potrace 18 , protozero 19 , testers 20 }: 21 22 stdenv.mkDerivation (finalAttrs: { 23 pname = "osm2pgsql"; 24 + version = "1.9.0"; 25 26 src = fetchFromGitHub { 27 owner = "openstreetmap"; 28 repo = "osm2pgsql"; 29 rev = finalAttrs.version; 30 + hash = "sha256-ZIjT4uKJas5RgxcMSoR8hWCM9pdu3hSzWwfIn1ZvU8Y="; 31 }; 32 33 postPatch = '' 34 # Remove bundled libraries 35 rm -r contrib ··· 37 38 nativeBuildInputs = [ cmake ]; 39 40 + buildInputs = [ 41 + boost 42 + bzip2 43 + cimg 44 + expat 45 + fmt 46 + libosmium 47 + nlohmann_json 48 + postgresql 49 + potrace 50 + proj 51 + protozero 52 + zlib 53 + ] ++ lib.optional withLuaJIT luajit 54 ++ lib.optional (!withLuaJIT) lua; 55 56 cmakeFlags = [ ··· 58 "-DEXTERNAL_PROTOZERO=ON" 59 "-DEXTERNAL_FMT=ON" 60 ] ++ lib.optional withLuaJIT "-DWITH_LUAJIT:BOOL=ON"; 61 + 62 + installFlags = [ "install-gen" ]; 63 64 passthru.tests.version = testers.testVersion { 65 package = finalAttrs.finalPackage;