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-02-10 20:34:41 +00:00
|
|
|
version = "2.2.1";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elisescu";
|
|
|
|
repo = "tty-share";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-aAqKfi0ZX0UB07yGY6x0HcMspvq4rcJXKHSONxAwMlc=";
|
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";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ andys8 ];
|
|
|
|
};
|
|
|
|
}
|