nixpkgs-suyu/pkgs/servers/t-rex/default.nix

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

30 lines
899 B
Nix
Raw Normal View History

2022-01-02 18:52:54 +01:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "t-rex";
2022-01-29 22:33:54 +01:00
version = "0.14.3";
2022-01-02 18:52:54 +01:00
src = fetchFromGitHub {
owner = "t-rex-tileserver";
repo = pname;
rev = "v${version}";
2022-01-29 22:33:54 +01:00
hash = "sha256-LUVk5li2cl/LKbhKOh6Bbwav0GEuI/vUbDPLn7NSRIs=";
2022-01-02 18:52:54 +01:00
};
2022-01-29 22:33:54 +01:00
cargoHash = "sha256-I4QmjTTKUp9iugEwzM0xCcNLvF5ozeBdYmbi8sytY88=";
2022-01-02 18:52:54 +01:00
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/";
2022-01-29 22:33:54 +01:00
changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md";
2022-01-02 18:52:54 +01:00
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
mainProgram = "t_rex";
2022-01-02 18:52:54 +01:00
platforms = platforms.unix;
};
}