Commit Graph

19 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
R. Ryantm
12fcee7344 blightmud-tts: 5.3.0 -> 5.3.1 2024-08-11 13:04:19 +00:00
K900
8e7a098243 speechd: introduce minimal variant, use it everywhere 2024-07-26 15:48:11 +03:00
Matteo Pacini
a31ca16914 blightmud: darwin support 2024-06-23 01:04:04 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Daniel McCarney
45ccd5f34b
blightmud: 5.2.0 -> 5.3.0
Updates Blightmud from v5.2.0 to v5.3.0. Requires adding one additional
ignored test that fails in the isolated Nix build environment.

See the upstream release notes [0] for more information.

[0]: https://github.com/Blightmud/Blightmud/releases/tag/v5.3.0
2023-09-30 10:37:32 -04:00
R. Ryantm
9443aa2872 blightmud-tts: 5.1.0 -> 5.2.0 2023-04-20 21:00:03 +00:00
Daniel McCarney
50800cbe94 blightmud: 5.0.0 -> 5.1.0
Updates Blightmud from v5.0.0 to v5.1.0.

See the upstream release notes[0] for more information.

[0]: https://github.com/Blightmud/Blightmud/releases/tag/v5.1.0
2023-02-27 11:53:46 -05:00
R. Ryantm
d17013ea9e blightmud: 4.0.0 -> 5.0.0 2022-11-02 10:50:38 +08:00
github-actions[bot]
4f07e7f326
Merge master into staging-next 2022-10-15 06:07:54 +00:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Daniel McCarney
deed43a725 blightmud: remove unused derivation arg. 2022-10-04 20:46:52 -04:00
Daniel McCarney
aa88e214ef blightmud: apply nixpkgs-format
For consistency, this commit runs the Blightmud derivation through
`nixpkgs-format`.
2022-10-04 20:33:55 -04:00
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