1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/by-name/t-/t-rex/package.nix

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

31 lines
959 B
Nix
Raw Normal View History

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;
maintainers = teams.geospatial.members;
mainProgram = "t_rex";
2022-01-02 17:52:54 +00:00
platforms = platforms.unix;
};
}