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-11-21 17:40:18 +00:00
|
|
|
version = "2.3.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elisescu";
|
|
|
|
repo = "tty-share";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-/oK2m2kxmF9HHYfTK6NlZxKKkDS7Oay+ed7jR/+szs0=";
|
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.
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|