nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 58 lines 895 B view raw
1{ 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, 14}: 15 16with builtins; 17 18stdenv.mkDerivation rec { 19 pname = "ttyd"; 20 version = "1.7.7"; 21 src = fetchFromGitHub { 22 owner = "tsl0922"; 23 repo = "ttyd"; 24 tag = version; 25 sha256 = "sha256-7e08oBKU7BMZ8328qCfNynCSe7LVZ88+iQZRRKl2YkY="; 26 }; 27 28 nativeBuildInputs = [ 29 pkg-config 30 cmake 31 xxd 32 ]; 33 buildInputs = [ 34 openssl 35 libwebsockets 36 json_c 37 libuv 38 zlib 39 ]; 40 41 outputs = [ 42 "out" 43 "man" 44 ]; 45 46 passthru.tests = { 47 inherit (nixosTests) ttyd; 48 }; 49 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 }; 58}