1 { lib, stdenv, fetchFromGitHub
2 , pkg-config, cmake, xxd
3 , openssl, libwebsockets, json_c, libuv, zlib
9 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
15 rev = "refs/tags/${version}";
16 sha256 = "sha256-7e08oBKU7BMZ8328qCfNynCSe7LVZ88+iQZRRKl2YkY=";
19 nativeBuildInputs = [ pkg-config cmake xxd ];
20 buildInputs = [ openssl libwebsockets json_c libuv zlib ];
22 outputs = [ "out" "man" ];
25 inherit (nixosTests) ttyd;
29 description = "Share your terminal over the web";
30 homepage = "https://github.com/tsl0922/ttyd";
31 license = lib.licenses.mit;
32 maintainers = [ lib.maintainers.thoughtpolice ];
33 platforms = lib.platforms.all;