osm2pgsql: fix build

This commit is contained in:
Nikolay Korotkiy 2023-07-25 01:24:00 +04:00
parent 8f23952d55
commit 3c070741a9
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -2,6 +2,7 @@
, fetchFromGitHub
, cmake
, expat
, fetchpatch
, fmt
, proj
, bzip2
@ -27,6 +28,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-8Jefd8dfoh/an7wd+8iTM0uOKA4UiUo8t2WzZs4r/Ck=";
};
patches = [
# Fix compatiblity with fmt 10.0. Remove with the next release
(fetchpatch {
url = "https://github.com/openstreetmap/osm2pgsql/commit/37aae6c874b58cd5cd27e70b2b433d6624fd7498.patch";
hash = "sha256-Fv2zPqhRDoJXlqB1Q9q5iskn28iqq3TYPcdqfu/pvD4=";
})
];
postPatch = ''
# Remove bundled libraries
rm -r contrib