New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rhvoice: init at 0.5 #32979
rhvoice: init at 0.5 #32979
Conversation
{ stdenv, lib, pkgconfig, fetchFromGitHub, scons, python, glibmm, libao | ||
}: | ||
|
||
with lib; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the meta attribute.
Moved.
with lib; | ||
stdenv.mkDerivation rec { | ||
name = "rhvoice"; | ||
#version = "2017-09-24"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
I hope to update to that version soon though, 0.5 is several years old.
|
||
with lib; | ||
stdenv.mkDerivation rec { | ||
name = "rhvoice"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Derivation name should contain the version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
# - RPATH, to link to the newly built libraries | ||
# 2. Some data is being zipped. Zip can't handle files from 1970. | ||
# | ||
postPatch = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make this a proper patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
env["BUILDDIR"]=BUILDDIR | ||
env["RPATH"]="'$out'/lib" | ||
' | ||
find "./" '!' -newermt '1980-01-01' -exec touch -d '1980-01-02' '{}' '+' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Some data is being zipped. Zip can't handle files from 1970.
@GrahamcOfBorg eval (sorry for the noise, master was broken by a merge) |
d2df41d
to
16f32aa
Compare
34e4a22
to
f0299c5
Compare
f0299c5
to
6709b92
Compare
substituteInPlace config/speechd.conf --replace "nixDefault" "${selectedDefaultModule}" | ||
substituteInPlace config/speechd.conf --replace "sd_rhvoice" "${rhvoice}/bin/sd_rhvoice" | ||
substituteInPlace config/speechd.conf --replace "RHVoice.conf" "${rhvoice}/etc/RHVoice/RHVoice.conf" | ||
${stdenv.lib.optionalString withPico '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional is not needed since the svox dependency can be compiled out. RHVoice, on the other hand, cannot so that one should get a conditional. Though, I would move enabling the rhvoice to a NixOS module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rearranged the optional stuff in patches and postPatch. Is that what you wanted?
Since speech-dispatcher ships with several speech engines, I think including RHVoice in the same way is convenient for the user. Would a NixOS module not make it only available in NixOS?
863b5b5
to
2e034c5
Compare
I remain unconvinced that rhvoice should be part of the speechd expression. |
Failure on x86_64-linux (full log) Attempted: rhvoice Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: rhvoice Partial log (click to expand)
|
Right, I am fine with |
Merged the updated rhvoice as f97c466 |
Motivation for this change
RHVoice is one of the best speech synthesis engines I 've heard, including commercial ones.
It can be tested with
echo "Talk to me" | RHVoice-test
.Things done
Win the battle against
scons
to gain power over the environment.Tested using sandboxing (nix.useSandbox on NixOS, or option
build-use-sandbox
innix.conf
on non-NixOS)Built on platform(s)
Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
Tested compilation of all pkgs that depend on this change using
nix-shell -p nox --run "nox-review wip"
Tested execution of all binary files (usually in
./result/bin/
)Fits CONTRIBUTING.md.