default.nix (745B)
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, gdal, openssl, Security }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "t-rex"; 5 version = "0.14.2"; 6 7 src = fetchFromGitHub { 8 owner = "t-rex-tileserver"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-QNowkQzEYLOgJ2h0yq+gShmW5WgqPF3iiSejqwrOrHo="; 12 }; 13 14 cargoHash = "sha256-k10DjLJCJLqjmtEED5pwQDt3mOiey89UYC36lG+3AmM="; 15 16 nativeBuildInputs = [ pkg-config ]; 17 18 buildInputs = [ gdal openssl ] ++ lib.optional stdenv.isDarwin Security; 19 20 meta = with lib; { 21 description = "t-rex vector tile server"; 22 homepage = "https://t-rex.tileserver.ch/"; 23 license = licenses.mit; 24 maintainers = [ maintainers.sikmir ]; 25 platforms = platforms.unix; 26 }; 27 }