blob: 720d277d0d2cb4d13367016b5589c39f1650c7b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, fetchFromGitHub
, pkgconfig, cmake, xxd
, openssl, libwebsockets, json_c, libuv
}:
with builtins;
let
# ttyd hasn't seen a release in quite a while. remove all this
# junk when a new one happens (eventually)
revCount = 174;
src = fetchFromGitHub {
owner = "tsl0922";
repo = "ttyd";
rev = "6df6ac3e03b705ddd46109c2ac43a1cba439c0df";
sha256 = "0g5jlfa7k6qd59ysdagczlhwgjfjspb3sfbd8b790hcil933qrxm";
};
in stdenv.mkDerivation rec {
pname = "ttyd";
version = "1.4.2_pre${toString revCount}_${substring 0 8 src.rev}";
inherit src;
nativeBuildInputs = [ pkgconfig cmake xxd ];
buildInputs = [ openssl libwebsockets json_c libuv ];
enableParallelBuilding = true;
outputs = [ "out" "man" ];
meta = {
description = "Share your terminal over the web";
homepage = https://github.com/tsl0922/ttyd;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
platforms = stdenv.lib.platforms.linux;
};
}
|