mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
e0464e4788
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
57 lines
1.9 KiB
Nix
57 lines
1.9 KiB
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security, SystemConfiguration }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "martin";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maplibre";
|
|
repo = "martin";
|
|
rev = "v${version}";
|
|
hash = "sha256-Jq72aEwM5bIaVywmS3HetR6nnBZnr3oa9a/4ZbgeL9E=";
|
|
};
|
|
|
|
cargoHash = "sha256-RO9nUH2+0jOCbvGtZ5j802mL85tY+Jz7ygPrNuFeE98=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security SystemConfiguration ];
|
|
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Blazing fast and lightweight PostGIS vector tiles server";
|
|
homepage = "https://martin.maplibre.org/";
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
maintainers = with maintainers; [ sikmir ];
|
|
};
|
|
}
|