1{
2 lib,
3 stdenv,
4 rustPlatform,
5 fetchFromGitHub,
6 openssl,
7 pkg-config,
8}:
9
10rustPlatform.buildRustPackage {
11 pname = "tunnelto";
12 version = "unstable-2022-09-25";
13
14 src = fetchFromGitHub {
15 owner = "agrinman";
16 repo = "tunnelto";
17 rev = "06428f13c638180dd349a4c42a17b569ab51a25f";
18 sha256 = "sha256-84jGcR/E1QoqIlbGu67muYUtZU66ZJtj4tdZvmYbII4=";
19 };
20
21 cargoHash = "sha256-QXkKqEEbNEDcypErDIFarJLuIoYWOZj/9jCbslxrOXs=";
22
23 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
24 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
25
26 meta = with lib; {
27 description = "Expose your local web server to the internet with a public URL";
28 homepage = "https://tunnelto.dev";
29 license = licenses.mit;
30 maintainers = with maintainers; [ Br1ght0ne ];
31 };
32}