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

29 lines
788 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";
version = "0.14.3-beta4";
2022-01-02 17:52:54 +00:00
src = fetchFromGitHub {
owner = "t-rex-tileserver";
repo = pname;
rev = "v${version}";
hash = "sha256-EG/nnHxnBwlxreJ+RWHvKqLpaVtlU95+YTJynEnypOE=";
2022-01-02 17:52:54 +00:00
};
cargoHash = "sha256-noDZNFZlfX6lZ4czsSrHXe7xbBLTD0Gz8i5EyfEp8lc=";
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/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}