Commit Graph

20 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
Weijia Wang
618ccc0663 espeak-ng: fix build with clang 16 2023-11-04 03:40:37 +01:00
Travis A. Everett
7344f8d5e8 pcaudiolib, espeak-ng: fix darwin builds 2023-10-16 11:28:41 +02:00
Robert Hensing
4c1d3cee60 treewide: Add meta.mainProgram
This should fix most warnings getExe in based on grepping `nixos/`.
2023-07-31 21:54:43 +02:00
Artturin
d28ce724a6 espeak-ng: fix cross 2023-05-01 17:24:25 +03:00
Nathan Henrie
e251ece266 espeak-ng: Add alsa-plugins path to ALSA_PLUGIN_DIR
Fixes https://github.com/NixOS/nixpkgs/issues/222722

On non-NixOS systems, `nixpkgs#espeak-ng` currently fails to find
`libasound_module_pcm_pulse.so`, as it seems to look in `alsa-lib-1.2.8`
but the file in question exists in alsa-plugins-1.2.7.1.

This change points it to the correct location allows `espeak-ng` to
work without error.
2023-03-27 19:11:14 -06:00
R. Ryantm
a6c4e3eba6 espeak-ng: 1.51 -> 1.51.1 2023-02-26 12:39:20 +00:00
linsui
93aeabb55a espeak-ng: 1.50 -> 1.51 2022-09-26 23:27:53 +08:00
Jan Tojnar
67e5298bfb speechd: Fix espeak-mbrola voice check 2022-01-09 02:17:11 +01:00
Sergei Trofimovich
ed66694ebf espeak-ng: explicitly disable parallel building
Current release lacks dependencies on local espeak-ng:

    cd dictsource && ESPEAK_DATA_PATH=/build/espeak-ng LD_LIBRARY_PATH=../src: \
        ../src/espeak-ng --compile=yue && cd ..
    bash: line 1: ../src/espeak-ng: No such file or directory

Should be fixed in next release: https://github.com/espeak-ng/espeak-ng/pull/1029
Can't apply patch as is as Makefile.am diverged quite a bit since 1.50
release.
2021-10-25 22:57:25 +01:00
davidak
bcfd64fc1a
espeak-ng: add mbrola support 2021-02-19 16:40:35 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Mario Rodas
2cc63fa4ca espeak-ng: enable on darwin 2020-12-27 04:25:00 -05:00
R. RyanTM
4fb4771a4a espeak: 1.49.2 -> 1.50 2019-12-07 22:09:21 -08:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Jan Malakhovski
f623f8c51e espeak-ng: tiny cleanup 2018-11-08 05:20:19 +00:00
Bert Moens
e0a356d1c7
espeak: 2016-08-28 → 1.49.2 2017-12-22 22:35:17 +01:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
aske
a6ce0f80fb espeak-ng: init at 2016-08-28 2016-09-05 03:33:41 +03:00