@@ -0,0 +1,34 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "teleconsole-${version}";
5+ version = "0.4.0";
6+
7+ goPackagePath = "github.com/gravitational/teleconsole";
8+
9+ src = fetchFromGitHub {
10+ owner = "gravitational";
11+ repo = "teleconsole";
12+ rev = version;
13+ sha256 = "01552422n0bj1iaaw6pvg9l1qr66r69sdsngxbcdjn1xh3mj74sm";
14+ };
15+
16+ goDeps = ./deps.nix;
17+
18+ CGO_ENABLED = 1;
19+ buildFlags = "-ldflags";
20+
21+ meta = with stdenv.lib; {
22+ homepage = "https://www.teleconsole.com/";
23+ description = "Share your terminal session with people you trust";
24+ license = licenses.asl20;
25+ platforms = platforms.all;
26+ # Builds for Aarch64 not possible in the current release due to
27+ # incompatibilities further up the dependency chain.
28+ # See:
29+ # - https://github.com/gravitational/teleport/issues/679
30+ # - https://github.com/kr/pty/issues/27
31+ broken = stdenv.isAarch64;
32+ maintainers = [ maintainers.kimburgess ];
33+ };
34+}