nixpkgs/pkgs/servers/geospatial/martin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
780 B
Nix
Raw Normal View History

2023-02-18 12:56:26 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, Security }:
2020-06-06 10:34:35 +00:00
rustPlatform.buildRustPackage rec {
pname = "martin";
2023-02-18 12:56:26 +00:00
version = "0.7.0";
2020-06-06 10:34:35 +00:00
src = fetchFromGitHub {
2022-11-21 17:41:48 +00:00
owner = "maplibre";
repo = "martin";
2020-06-06 10:34:35 +00:00
rev = "v${version}";
2023-02-18 12:56:26 +00:00
hash = "sha256-UIAsij4fFxGAoKluQFAtrfgKIteM+LQtAKRDvRaNLSg=";
2020-06-06 10:34:35 +00:00
};
2023-02-18 12:56:26 +00:00
cargoHash = "sha256-NtPI8MZNUn+QYPuG9WNMVZJW6jmyi5gEfNw8MrkiwUQ=";
2022-10-05 23:50:24 +00:00
2023-02-18 12:56:26 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
2020-06-06 10:34:35 +00:00
doCheck = false;
meta = with lib; {
2020-06-06 10:34:35 +00:00
description = "Blazing fast and lightweight PostGIS vector tiles server";
2022-11-21 17:41:48 +00:00
homepage = "https://martin.maplibre.org/";
license = with licenses; [ mit /* or */ asl20 ];
2020-06-06 10:34:35 +00:00
maintainers = with maintainers; [ sikmir ];
};
}