Merge pull request #204727 from meain/fix-nanotts

nanotts: fix dependency on alsa-plugins
This commit is contained in:
Artturi 2023-02-19 07:19:54 +02:00 committed by GitHub
commit e1f9343793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, popt, alsa-lib }:
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, popt, alsa-lib, alsa-plugins, makeWrapper }:
stdenv.mkDerivation {
pname = "nano-tts";
@ -12,7 +12,7 @@ stdenv.mkDerivation {
};
strictDeps = true;
nativeBuildInputs = [ autoconf automake libtool ];
nativeBuildInputs = [ autoconf automake libtool makeWrapper ];
buildInputs = [ popt alsa-lib ];
patchPhase = ''
@ -23,6 +23,8 @@ stdenv.mkDerivation {
installPhase = ''
install -Dm755 -t $out/bin nanotts
install -Dm644 -t $out/share/lang $src/lang/*
wrapProgram $out/bin/nanotts \
--set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib
'';
meta = {