diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2024-03-11 23:30:20 +0400 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2024-03-12 00:10:19 +0400 |
commit | 439271b6eabfe60f8e951df428d6ebceb1055451 (patch) | |
tree | f80e7cf878852a65f3bf884985b3170a07f47a1e /pkgs/by-name | |
parent | 21a16622eee4f2bdd537772c97e12c2b23494717 (diff) | |
download | nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar.gz nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar.bz2 nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar.lz nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar.xz nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.tar.zst nixlib-439271b6eabfe60f8e951df428d6ebceb1055451.zip |
t-rex: migrate to by-name
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/t-/t-rex/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/t-/t-rex/package.nix b/pkgs/by-name/t-/t-rex/package.nix new file mode 100644 index 000000000000..f26592e052d0 --- /dev/null +++ b/pkgs/by-name/t-/t-rex/package.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, darwin }: + +rustPlatform.buildRustPackage rec { + pname = "t-rex"; + version = "0.15.0-alpha3"; + + src = fetchFromGitHub { + owner = "t-rex-tileserver"; + repo = "t-rex"; + rev = "v${version}"; + hash = "sha256-oZZrR86/acoyMX3vC1JGrpc8G+DEuplqfEAnaP+TBGU="; + }; + + cargoHash = "sha256-nxq4mX2Sy6Hyi8tA2CQsQwISB/kau4DEkAgIm4SvGns="; + + nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; + + buildInputs = [ gdal openssl ] + ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + + meta = with lib; { + description = "Vector tile server specialized on publishing MVT tiles"; + homepage = "https://t-rex.tileserver.ch/"; + changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = teams.geospatial.members; + mainProgram = "t_rex"; + platforms = platforms.unix; + }; +} |