3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/t-rex/default.nix

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

29 lines
872 B
Nix
Raw Normal View History

2022-01-02 17:52:54 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, Security }:
rustPlatform.buildRustPackage rec {
pname = "t-rex";
2022-01-29 21:33:54 +00:00
version = "0.14.3";
2022-01-02 17:52:54 +00:00
src = fetchFromGitHub {
owner = "t-rex-tileserver";
repo = pname;
rev = "v${version}";
2022-01-29 21:33:54 +00:00
hash = "sha256-LUVk5li2cl/LKbhKOh6Bbwav0GEuI/vUbDPLn7NSRIs=";
2022-01-02 17:52:54 +00:00
};
2022-01-29 21:33:54 +00:00
cargoHash = "sha256-I4QmjTTKUp9iugEwzM0xCcNLvF5ozeBdYmbi8sytY88=";
2022-01-02 17:52:54 +00: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 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 = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}