3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/geospatial/martin/default.nix

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

33 lines
891 B
Nix
Raw Normal View History

2022-10-06 00:50:24 +01:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, fetchpatch, Security }:
2020-06-06 11:34:35 +01:00
rustPlatform.buildRustPackage rec {
pname = "martin";
version = "0.5.0";
src = fetchFromGitHub {
owner = "urbica";
repo = pname;
rev = "v${version}";
2022-10-06 00:50:24 +01:00
hash = "sha256-kygqwbaByse81oc007piXHM6aK6Yi2JB0qTFN2WFP8U=";
2020-06-06 11:34:35 +01:00
};
2022-10-06 00:50:24 +01:00
cargoPatches = [
# Remove after a new release, tracked by https://github.com/maplibre/martin/issues/410.
./update-socket2-for-rust-1.64.patch
];
2020-06-06 11:34:35 +01:00
2022-10-06 00:50:24 +01:00
cargoHash = "sha256-oevyr1P0uzHbpWCYQ1raqA42HI2KLl2IYcm1D2PeKOo=";
buildInputs = lib.optional stdenv.isDarwin Security;
2020-06-06 11:34:35 +01:00
doCheck = false;
meta = with lib; {
2020-06-06 11:34:35 +01:00
description = "Blazing fast and lightweight PostGIS vector tiles server";
homepage = "https://martin.urbica.co/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = with platforms; linux ++ darwin;
};
}