2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, cmake, xxd
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl, libwebsockets, json_c, libuv, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ttyd";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsl0922";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "ErWd99js2EldkRNWFdgZw/X3DIz266kM3lLlC34Deno=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake xxd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl libwebsockets json_c libuv zlib ];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Share your terminal over the web";
|
|
|
|
homepage = "https://github.com/tsl0922/ttyd";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.thoughtpolice ];
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|