2022-03-05 16:20:37 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
buildGoModule rec {
|
2020-12-25 13:55:36 +00:00
|
|
|
pname = "tty-share";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "2.4.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elisescu";
|
|
|
|
repo = "tty-share";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-7rNSBpiZslUGWw0P/Q1zRtNxo9MN8Vq6hG8pD6bJIsA=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
# Upstream has a `./vendor` directory with all deps which we rely upon.
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +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-29 20:09:43 +00:00
|
|
|
mainProgram = "tty-share";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
}
|