26 stdenv.mkDerivation (finalAttrs: {
30 src = fetchFromGitHub {
31 owner = "osm2pgsql-dev";
33 rev = finalAttrs.version;
34 hash = "sha256-+EFvYloLm/cDOflqj6ZIgjFoljKhYBVIKxD8L9j2Hj4=";
38 # Remove bundled libraries
42 nativeBuildInputs = [ cmake ];
58 (python3.withPackages (
66 ++ lib.optional withLuaJIT luajit
67 ++ lib.optional (!withLuaJIT) lua;
70 (lib.cmakeBool "EXTERNAL_LIBOSMIUM" true)
71 (lib.cmakeBool "EXTERNAL_PROTOZERO" true)
72 (lib.cmakeBool "EXTERNAL_FMT" true)
73 (lib.cmakeBool "WITH_LUAJIT" withLuaJIT)
76 passthru.tests.version = testers.testVersion {
77 package = finalAttrs.finalPackage;
81 description = "OpenStreetMap data to PostgreSQL converter";
82 homepage = "https://osm2pgsql.org";
83 license = lib.licenses.gpl2Plus;
84 platforms = lib.platforms.unix;
86 lib.teams.geospatial.members
87 ++ (with lib.maintainers; [