-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #329658: speechd: use minimal variant
Also add it and inject big variant impurely. Merge into staging-next
- Loading branch information
Showing
23 changed files
with
150 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
let | ||
cfg = config.services.speechd; | ||
inherit (lib) | ||
getExe | ||
mkEnableOption | ||
mkIf | ||
mkPackageOption | ||
; | ||
in | ||
{ | ||
options.services.speechd = { | ||
# FIXME: figure out how to deprecate this EXTREMELY CAREFULLY | ||
enable = mkEnableOption "speech-dispatcher speech synthesizer daemon" // { | ||
default = true; | ||
}; | ||
package = mkPackageOption pkgs "speechd" { }; | ||
}; | ||
|
||
# FIXME: speechd 0.12 (or whatever the next version is) | ||
# will support socket activation, so switch to that once it's out. | ||
config = mkIf cfg.enable { | ||
environment = { | ||
systemPackages = [ cfg.package ]; | ||
sessionVariables.SPEECHD_CMD = getExe cfg.package; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
unstableGitUpdater, | ||
mbrola, | ||
languages ? [ ], | ||
}: | ||
|
||
let | ||
src = fetchFromGitHub { | ||
owner = "numediart"; | ||
repo = "MBROLA-voices"; | ||
rev = "fe05a0ccef6a941207fd6aaad0b31294a1f93a51"; | ||
hash = "sha256-QBUggnde5iNeCESzxE0btVVTDOxc3Kdk483mdGUXHvA="; | ||
}; | ||
|
||
meta = { | ||
description = "Speech synthesizer based on the concatenation of diphones (voice files)"; | ||
homepage = "https://github.com/numediart/MBROLA-voices"; | ||
license = mbrola.meta.license; | ||
}; | ||
in | ||
|
||
if (languages == [ ]) then | ||
src // { inherit meta; } | ||
else | ||
stdenv.mkDerivation { | ||
pname = "mbrola-voices"; | ||
version = "0-unstable-2020-03-30"; | ||
|
||
inherit src; | ||
|
||
postPatch = '' | ||
shopt -s extglob | ||
pushd data | ||
rm -rfv !(${lib.concatStringsSep "|" languages}) | ||
popd | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir $out | ||
cp -R data $out/ | ||
runHook postInstall | ||
''; | ||
|
||
inherit meta; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ lib, qtModule, stdenv, speechd, pkg-config }: | ||
{ lib, qtModule, stdenv, speechd-minimal, pkg-config }: | ||
|
||
qtModule { | ||
pname = "qtspeech"; | ||
propagatedBuildInputs = [ ]; | ||
buildInputs = lib.optionals stdenv.isLinux [ speechd ]; | ||
buildInputs = lib.optionals stdenv.isLinux [ speechd-minimal ]; | ||
nativeBuildInputs = [ pkg-config ]; | ||
outputs = [ "out" "dev" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.