Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "gotty";
9 version = "1.5.0";
10
11 src = fetchFromGitHub {
12 owner = "sorenisanerd";
13 repo = "gotty";
14 rev = "v${version}";
15 sha256 = "sha256-VSu0ASnLmRzOGOEKqb/zB43+HxEwMpKLpbdbWY5QrEk=";
16 };
17
18 vendorHash = "sha256-XtqIiREtKg0LRnwOg8UyYrWUWJNQbCJUw+nVvaiN3GQ=";
19
20 # upstream did not update the tests, so they are broken now
21 # https://github.com/sorenisanerd/gotty/issues/13
22 doCheck = false;
23
24 meta = with lib; {
25 description = "Share your terminal as a web application";
26 mainProgram = "gotty";
27 homepage = "https://github.com/sorenisanerd/gotty";
28 maintainers = with maintainers; [ prusnak ];
29 license = licenses.mit;
30 };
31}