diff options
author | Nathan Henrie <nate@n8henrie.com> | 2023-03-23 16:07:12 -0600 |
---|---|---|
committer | Nathan Henrie <nate@n8henrie.com> | 2023-03-27 19:11:14 -0600 |
commit | e251ece266c5d59ef8c5df98feb629a26a35a14d (patch) | |
tree | 0c907ad82719093b293c7330b6c4728d59dade7b /pkgs/applications/audio/espeak-ng | |
parent | 6f98094b2da16034b5f67fa63fc9f84dec30babd (diff) |
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.
Diffstat (limited to 'pkgs/applications/audio/espeak-ng')
-rw-r--r-- | pkgs/applications/audio/espeak-ng/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/audio/espeak-ng/default.nix b/pkgs/applications/audio/espeak-ng/default.nix index 28b60fa600743..5b558a419d1fc 100644 --- a/pkgs/applications/audio/espeak-ng/default.nix +++ b/pkgs/applications/audio/espeak-ng/default.nix @@ -14,6 +14,8 @@ , pcaudiolib , sonicSupport ? true , sonic +, alsa-plugins +, makeWrapper }: stdenv.mkDerivation rec { @@ -35,7 +37,7 @@ stdenv.mkDerivation rec { }) ]; - nativeBuildInputs = [ autoconf automake which libtool pkg-config ronn ]; + nativeBuildInputs = [ autoconf automake which libtool pkg-config ronn makeWrapper ]; buildInputs = lib.optional mbrolaSupport mbrola ++ lib.optional pcaudiolibSupport pcaudiolib @@ -49,6 +51,8 @@ stdenv.mkDerivation rec { postInstall = lib.optionalString stdenv.isLinux '' patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng + wrapProgram $out/bin/espeak-ng \ + --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib ''; passthru = { |