2023-10-09 19:29:22 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, SystemConfiguration }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "martin";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.9.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-27 09:42:12 +00:00
|
|
|
owner = "maplibre";
|
|
|
|
repo = "martin";
|
2020-07-18 16:06:22 +00:00
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-Jq72aEwM5bIaVywmS3HetR6nnBZnr3oa9a/4ZbgeL9E=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
cargoHash = "sha256-RO9nUH2+0jOCbvGtZ5j802mL85tY+Jz7ygPrNuFeE98=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip function_source_schemas"
|
|
|
|
"--skip function_source_tile"
|
|
|
|
"--skip function_source_tilejson"
|
|
|
|
"--skip pg_get_function_tiles"
|
|
|
|
"--skip pg_get_function_source_ok_rewrite"
|
|
|
|
"--skip pg_get_function_source_ok"
|
|
|
|
"--skip pg_get_composite_source_tile_minmax_zoom_ok"
|
|
|
|
"--skip pg_get_function_source_query_params_ok"
|
|
|
|
"--skip pg_get_composite_source_tile_ok"
|
|
|
|
"--skip pg_get_catalog"
|
|
|
|
"--skip pg_get_composite_source_ok"
|
|
|
|
"--skip pg_get_health_returns_ok"
|
|
|
|
"--skip pg_get_table_source_ok"
|
|
|
|
"--skip pg_get_table_source_rewrite"
|
|
|
|
"--skip pg_null_functions"
|
|
|
|
"--skip utils::test_utils::tests::test_bad_os_str"
|
|
|
|
"--skip utils::test_utils::tests::test_get_env_str"
|
|
|
|
"--skip pg_get_table_source_multiple_geom_tile_ok"
|
|
|
|
"--skip pg_get_table_source_tile_minmax_zoom_ok"
|
|
|
|
"--skip pg_tables_feature_id"
|
|
|
|
"--skip pg_get_table_source_tile_ok"
|
|
|
|
"--skip table_source_schemas"
|
|
|
|
"--skip tables_srid_ok"
|
|
|
|
"--skip tables_tile_ok"
|
|
|
|
"--skip table_source"
|
|
|
|
"--skip tables_tilejson"
|
|
|
|
"--skip tables_multiple_geom_ok"
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "Blazing fast and lightweight PostGIS vector tiles server";
|
2022-11-27 09:42:12 +00:00
|
|
|
homepage = "https://martin.maplibre.org/";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|