git.iko.soy/typeable/nixpkgs
on master help sign in
ttyd: init at 1.4.2_pre174_6df6ac3e

ttyd hasn't seen a release in a while, but has a few useful bugfixes and features (such as IPv6) that are good to have. It also seems to fix a few crashes I encountered (likely due to newer openssl/libwebsockets). So in an untraditional fashion, we'll adopt this with a _pre tag to ensure it gets bumped correctly later on. Signed-off-by: Austin Seipp <aseipp@pobox.com>

commitf435d75d79b73e4b820a6436a9a63fff18b6e7c7 authorAustin Seipp <aseipp@pobox.com> dateTue 5 Mar 2019, 17:37 (8 years ago) parentfeef089
2 files changed+39
pkgs/servers/ttyd/default.nix+37 pkgs/top-level/all-packages.nix+2
pkgs/servers/ttyd/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub
2+, pkgconfig, cmake, xxd
3+, openssl, libwebsockets, json_c, libuv
4+}:
5+
6+with builtins;
7+
8+let
9+ # ttyd hasn't seen a release in quite a while. remove all this
10+ # junk when a new one happens (eventually)
11+ revCount = 174;
12+ src = fetchFromGitHub {
13+ owner = "tsl0922";
14+ repo = "ttyd";
15+ rev = "6df6ac3e03b705ddd46109c2ac43a1cba439c0df";
16+ sha256 = "0g5jlfa7k6qd59ysdagczlhwgjfjspb3sfbd8b790hcil933qrxm";
17+ };
18+
19+in stdenv.mkDerivation rec {
20+ name = "ttyd-${version}";
21+ version = "1.4.2_pre${toString revCount}_${substring 0 8 src.rev}";
22+ inherit src;
23+
24+ nativeBuildInputs = [ pkgconfig cmake xxd ];
25+ buildInputs = [ openssl libwebsockets json_c libuv ];
26+ enableParallelBuilding = true;
27+
28+ outputs = [ "out" "man" ];
29+
30+ meta = {
31+ description = "Share your terminal over the web";
32+ homepage = https://github.com/tsl0922/ttyd;
33+ license = stdenv.lib.licenses.mit;
34+ maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
35+ platforms = stdenv.lib.platforms.linux;
36+ };
37+}
pkgs/top-level/all-packages.nix+2
@@ -9239,6 +9239,8 @@ in
92399239
92409240 trellis = callPackage ../development/tools/trellis { };
92419241
9242+ ttyd = callPackage ../servers/ttyd { };
9243+
92429244 tweak = callPackage ../applications/editors/tweak { };
92439245
92449246 tychus = callPackage ../development/tools/tychus {