2024-03-11 19:30:20 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, darwin }:
|
2022-01-02 17:52:54 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "t-rex";
|
2024-03-11 19:25:04 +00:00
|
|
|
version = "0.15.0-alpha3";
|
2022-01-02 17:52:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "t-rex-tileserver";
|
2024-03-11 19:25:04 +00:00
|
|
|
repo = "t-rex";
|
2022-01-02 17:52:54 +00:00
|
|
|
rev = "v${version}";
|
2024-03-11 19:25:04 +00:00
|
|
|
hash = "sha256-oZZrR86/acoyMX3vC1JGrpc8G+DEuplqfEAnaP+TBGU=";
|
2022-01-02 17:52:54 +00:00
|
|
|
};
|
|
|
|
|
2024-03-11 19:25:04 +00:00
|
|
|
cargoHash = "sha256-nxq4mX2Sy6Hyi8tA2CQsQwISB/kau4DEkAgIm4SvGns=";
|
2022-01-02 17:52:54 +00:00
|
|
|
|
2024-03-11 19:25:04 +00:00
|
|
|
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
|
2022-01-02 17:52:54 +00:00
|
|
|
|
2024-03-11 19:30:20 +00:00
|
|
|
buildInputs = [ gdal openssl ]
|
|
|
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2022-01-02 17:52:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Vector tile server specialized on publishing MVT tiles";
|
|
|
|
homepage = "https://t-rex.tileserver.ch/";
|
2022-01-29 21:33:54 +00:00
|
|
|
changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md";
|
2022-01-02 17:52:54 +00:00
|
|
|
license = licenses.mit;
|
2023-11-28 11:20:08 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2022-05-05 01:46:39 +01:00
|
|
|
mainProgram = "t_rex";
|
2022-01-02 17:52:54 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|