acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / t- / t-rex / package.nix
blob7c92e49182ddd4c244f1ace5421365b29f976804
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "t-rex";
5   version = "0.15.0-alpha3";
7   src = fetchFromGitHub {
8     owner = "t-rex-tileserver";
9     repo = "t-rex";
10     rev = "v${version}";
11     hash = "sha256-oZZrR86/acoyMX3vC1JGrpc8G+DEuplqfEAnaP+TBGU=";
12   };
14   cargoHash = "sha256-nxq4mX2Sy6Hyi8tA2CQsQwISB/kau4DEkAgIm4SvGns=";
16   nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
18   buildInputs = [ gdal openssl ]
19     ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
21   meta = with lib; {
22     description = "Vector tile server specialized on publishing MVT tiles";
23     homepage = "https://t-rex.tileserver.ch/";
24     changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md";
25     license = licenses.mit;
26     maintainers = teams.geospatial.members;
27     mainProgram = "t_rex";
28     platforms = platforms.unix;
29   };