2022-02-18 15:30:04 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-19 10:25:45 +00:00
|
|
|
|
2022-02-18 15:30:04 +00:00
|
|
|
buildGoModule rec {
|
2020-12-19 10:25:45 +00:00
|
|
|
pname = "tty-share";
|
2022-11-27 11:14:10 +00:00
|
|
|
version = "2.4.0";
|
2020-12-19 10:25:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elisescu";
|
|
|
|
repo = "tty-share";
|
|
|
|
rev = "v${version}";
|
2022-11-27 11:14:10 +00:00
|
|
|
sha256 = "sha256-7rNSBpiZslUGWw0P/Q1zRtNxo9MN8Vq6hG8pD6bJIsA=";
|
2020-12-19 10:25:45 +00:00
|
|
|
};
|
|
|
|
|
2022-02-18 15:30:04 +00:00
|
|
|
# Upstream has a `./vendor` directory with all deps which we rely upon.
|
2023-09-21 17:11:11 +00:00
|
|
|
vendorHash = null;
|
2022-02-18 15:30:04 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-12-19 10:25:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-19 10:25:45 +00:00
|
|
|
homepage = "https://tty-share.com";
|
|
|
|
description = "Share terminal via browser for remote work or shared sessions";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ andys8 ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "tty-share";
|
2020-12-19 10:25:45 +00:00
|
|
|
};
|
|
|
|
}
|