blightmud: apply nixpkgs-format
For consistency, this commit runs the Blightmud derivation through `nixpkgs-format`.
This commit is contained in:
parent
450e7db066
commit
aa88e214ef
@ -1,5 +1,14 @@
|
||||
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, alsa-lib, openssl
|
||||
, withTTS ? false, llvmPackages, speechd }:
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, alsa-lib
|
||||
, openssl
|
||||
, withTTS ? false
|
||||
, llvmPackages
|
||||
, speechd
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "blightmud";
|
||||
@ -20,23 +29,25 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = [ alsa-lib openssl ] ++ lib.optional withTTS [ speechd ];
|
||||
|
||||
checkFlags = let
|
||||
# Most of Blightmud's unit tests pass without trouble in the isolated
|
||||
# Nixpkgs build env. The following tests need to be skipped.
|
||||
skipList = [
|
||||
"test_connect"
|
||||
"test_gmcp_negotiation"
|
||||
"test_ttype_negotiation"
|
||||
"test_reconnect"
|
||||
"test_is_connected"
|
||||
"test_mud"
|
||||
"test_server"
|
||||
"test_lua_script"
|
||||
"timer_test"
|
||||
"validate_assertion_fail"
|
||||
];
|
||||
skipFlag = test: "--skip " + test;
|
||||
in builtins.concatStringsSep " " (builtins.map skipFlag skipList);
|
||||
checkFlags =
|
||||
let
|
||||
# Most of Blightmud's unit tests pass without trouble in the isolated
|
||||
# Nixpkgs build env. The following tests need to be skipped.
|
||||
skipList = [
|
||||
"test_connect"
|
||||
"test_gmcp_negotiation"
|
||||
"test_ttype_negotiation"
|
||||
"test_reconnect"
|
||||
"test_is_connected"
|
||||
"test_mud"
|
||||
"test_server"
|
||||
"test_lua_script"
|
||||
"timer_test"
|
||||
"validate_assertion_fail"
|
||||
];
|
||||
skipFlag = test: "--skip " + test;
|
||||
in
|
||||
builtins.concatStringsSep " " (builtins.map skipFlag skipList);
|
||||
|
||||
meta = with lib; {
|
||||
description = "A terminal MUD client written in Rust";
|
||||
|
Loading…
Reference in New Issue
Block a user