Commit Graph

5 Commits

Author SHA1 Message Date
Daniel McCarney
450e7db066 blightmud: use rustPlatform.bindgenHook
By using `rustPlatform.bindgenHook` as a `nativeBuildInput` the
Blightmud derivation's custom LIBCLANG_PATH and preBuild step can be
removed outright. See the languages frameworks Rust hooks docs[0] for
more information.

[0]: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#hooks-hooks
2022-10-04 20:33:21 -04:00
Daniel McCarney
9d9d2f76c4 blightmud: 3.6.2 -> 4.0.0
Updates blightmud derivation to v4.0.0. See the upstream project[0] for
full release notes.

[0]: https://github.com/Blightmud/Blightmud/releases/tag/v4.0.0
2022-09-08 17:04:22 -04:00
Daniel McCarney
8a073a3b7f
blightmud: 3.5.0 -> 3.6.2
Updates Blightmud to 3.6.2, this in turn brings in updated dependencies
that fix building `blightmud-tts` with modern speechd. This allows
removing the broken flag on this package.
2022-05-17 10:20:47 -04:00
Armeen Mahdian
2b36595596 blightmud-tts: mark as broken 2022-05-13 17:31:32 -05:00
Daniel McCarney
ae1bee344a
blightmud: init at 3.5.0
Blightmud is a terminal client for connecting to Multi User Dungeon
(MUD) games. It is written in Rust and supports TLS, GMCP, MSDP, MCCP2,
tab completion, text searching and a split view for scrolling. Blightmud
can be customized with Lua scripting for aliases, triggers, timers,
customized status bars, and more. Blightmud supports several
accessibility features including an optional built-in text-to-speech
engine and a screen reader friendly mode.

For nixpkgs it is largely a standard derivation for a rust project using
`rustPlatform.buildRustPackage`. There is some customization required
for the optional text-to-speech (TTS) engine support. In this case the
derivation must also set the `LIBCLANG_PATH` and customize
`BINDGEN_EXTRA_CLANG_ARGS` in order for a required crate to be able to
`rust-bindgen` the `libspeechd` dependency it wraps. Lastly the
derivation has to skip some integration-style tests that don't play
nicely with the nixpkgs build environment - the majority of unit tests
work so they are left running in the check phase.

Since the TTS support brings in heavy dependencies, but is a useful
accessibility feature, the Blightmud derivation is added to
`all-packages.nix` twice:

1. the `blightmud` attribute builds a configuration without TTS support.
2. the `blightmud-tts` attribute builds a configuration _with_ TTS
   support.

The new Blightmud derivation is placed in `pkgs/games/blightmud/`
following the precedent set by another packaged GUI-based MUD client,
`mudlet` with `pkgs/games/mudlet/`.
2022-01-14 18:34:01 -05:00