12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-e9Uo0IJYL9/6/nNL27zfUYnsTwDaOJOcR2CY6t++jDE=";
23 cargoHash = "sha256-QSgTpmSojZrwZ0RsUL6c2xO310RZX3gkyGl6oNf6pYI=";
25 buildFeatures = lib.optional withTTS "tts";
27 nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
29 buildInputs = [ alsa-lib openssl ] ++ lib.optionals withTTS [ speechd ];
33 # Most of Blightmud's unit tests pass without trouble in the isolated
34 # Nixpkgs build env. The following tests need to be skipped.
37 "test_gmcp_negotiation"
38 "test_ttype_negotiation"
45 "validate_assertion_fail"
48 skipFlag = test: "--skip " + test;
50 builtins.concatStringsSep " " (builtins.map skipFlag skipList);
53 description = "A terminal MUD client written in Rust";
54 mainProgram = "blightmud";
56 Blightmud is a terminal client for connecting to Multi User Dungeon (MUD)
57 games. It is written in Rust and supports TLS, GMCP, MSDP, MCCP2, tab
58 completion, text searching and a split view for scrolling. Blightmud can
59 be customized with Lua scripting for aliases, triggers, timers, customized
60 status bars, and more. Blightmud supports several accessibility features
61 including an optional built-in text-to-speech engine and a screen reader
64 homepage = "https://github.com/Blightmud/Blightmud";
65 license = licenses.gpl3Plus;
66 maintainers = with maintainers; [ cpu ];
67 platforms = platforms.linux;