traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / tt / ttyd / package.nix
blob9a35f4b1f5b43448c194014e985519bc0e55020c
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   pkg-config,
6   cmake,
7   xxd,
8   openssl,
9   libwebsockets,
10   json_c,
11   libuv,
12   zlib,
13   nixosTests,
16 with builtins;
18 stdenv.mkDerivation rec {
19   pname = "ttyd";
20   version = "1.7.7";
21   src = fetchFromGitHub {
22     owner = "tsl0922";
23     repo = pname;
24     tag = version;
25     sha256 = "sha256-7e08oBKU7BMZ8328qCfNynCSe7LVZ88+iQZRRKl2YkY=";
26   };
28   nativeBuildInputs = [
29     pkg-config
30     cmake
31     xxd
32   ];
33   buildInputs = [
34     openssl
35     libwebsockets
36     json_c
37     libuv
38     zlib
39   ];
41   outputs = [
42     "out"
43     "man"
44   ];
46   passthru.tests = {
47     inherit (nixosTests) ttyd;
48   };
50   meta = {
51     description = "Share your terminal over the web";
52     homepage = "https://github.com/tsl0922/ttyd";
53     license = lib.licenses.mit;
54     maintainers = [ lib.maintainers.thoughtpolice ];
55     platforms = lib.platforms.all;
56     mainProgram = "ttyd";
57   };