depot/third_party/nixpkgs/pkgs/servers/t-rex/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

27 lines
781 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "t-rex";
version = "0.14.2";
src = fetchFromGitHub {
owner = "t-rex-tileserver";
repo = pname;
rev = "v${version}";
hash = "sha256-QNowkQzEYLOgJ2h0yq+gShmW5WgqPF3iiSejqwrOrHo=";
};
cargoHash = "sha256-k10DjLJCJLqjmtEED5pwQDt3mOiey89UYC36lG+3AmM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gdal openssl ] ++ lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "Vector tile server specialized on publishing MVT tiles";
homepage = "https://t-rex.tileserver.ch/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}