diff options
author | Austin Seipp <aseipp@pobox.com> | 2019-03-05 17:37:47 -0600 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2019-03-06 02:22:49 -0600 |
commit | f435d75d79b73e4b820a6436a9a63fff18b6e7c7 (patch) | |
tree | 0fe0aceb5f713a3f820deca3bc2668826b6e1c60 /pkgs | |
parent | feef0893d1441e665f00a35879c1c2b74ae58a96 (diff) | |
download | nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar.gz nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar.bz2 nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar.lz nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar.xz nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.tar.zst nixpkgs-f435d75d79b73e4b820a6436a9a63fff18b6e7c7.zip |
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>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/ttyd/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/servers/ttyd/default.nix b/pkgs/servers/ttyd/default.nix new file mode 100644 index 00000000000..bae43412e78 --- /dev/null +++ b/pkgs/servers/ttyd/default.nix @@ -0,0 +1,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 { + name = "ttyd-${version}"; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 91f9aaf23b3..7f0984a6534 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9239,6 +9239,8 @@ in trellis = callPackage ../development/tools/trellis { }; + ttyd = callPackage ../servers/ttyd { }; + tweak = callPackage ../applications/editors/tweak { }; tychus = callPackage ../development/tools/tychus { |