diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-01-02 20:52:54 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-01-04 00:04:13 +0300 |
commit | 19cbe5c41c12e878a3a4dcddf2ead41a630e6dc1 (patch) | |
tree | 778d150082c2ff305ba0f3d89e3f3f20b4b5e55d /pkgs/servers/t-rex | |
parent | 059fcf50f3956f2643969632e31e607ac7875fa0 (diff) |
t-rex: init at 0.14.2
Diffstat (limited to 'pkgs/servers/t-rex')
-rw-r--r-- | pkgs/servers/t-rex/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/t-rex/default.nix b/pkgs/servers/t-rex/default.nix new file mode 100644 index 0000000000000..48903b9130314 --- /dev/null +++ b/pkgs/servers/t-rex/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, Security }: + +rustPlatform.buildRustPackage rec { + pname = "t-rex"; + version = "0.14.2"; + + src = fetchFromGitHub { + owner = "t-rex-tileserver"; + repo = pname; + rev = "v${version}"; + hash = "sha256-QNowkQzEYLOgJ2h0yq+gShmW5WgqPF3iiSejqwrOrHo="; + }; + + cargoHash = "sha256-k10DjLJCJLqjmtEED5pwQDt3mOiey89UYC36lG+3AmM="; + + 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; + }; +} |