Files
nixpkgs/pkgs/by-name/tt/ttyd/package.nix
Ethan Carter Edwards f8da08740c ttyd: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-07-26 17:06:25 -04:00

65 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
cmake,
xxd,
openssl,
libwebsockets,
json_c,
libuv,
zlib,
versionCheckHook,
nixosTests,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ttyd";
version = "1.7.7";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "tsl0922";
repo = "ttyd";
tag = finalAttrs.version;
hash = "sha256-7e08oBKU7BMZ8328qCfNynCSe7LVZ88+iQZRRKl2YkY=";
};
nativeBuildInputs = [
pkg-config
cmake
xxd
];
buildInputs = [
openssl
libwebsockets
json_c
libuv
zlib
];
outputs = [
"out"
"man"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.tests = {
inherit (nixosTests) ttyd;
};
meta = {
description = "Share your terminal over the web";
homepage = "https://github.com/tsl0922/ttyd";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.thoughtpolice ];
platforms = lib.platforms.all;
mainProgram = "ttyd";
};
})