2022-01-16 16:53:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ensureNewerSourcesForZipFilesHook
|
|
|
|
, pkg-config
|
|
|
|
, scons
|
|
|
|
, glibmm
|
|
|
|
, libpulseaudio
|
|
|
|
, libao
|
|
|
|
, speechd
|
|
|
|
}:
|
2017-12-22 14:35:33 +00:00
|
|
|
|
2022-01-16 16:53:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "rhvoice";
|
2022-05-05 02:45:11 +01:00
|
|
|
version = "1.8.0";
|
2017-12-22 14:35:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-16 16:53:09 +00:00
|
|
|
owner = "RHVoice";
|
2017-12-22 14:35:33 +00:00
|
|
|
repo = "RHVoice";
|
2022-01-16 16:53:09 +00:00
|
|
|
rev = version;
|
|
|
|
fetchSubmodules = true;
|
2022-05-05 02:45:11 +01:00
|
|
|
hash = "sha256-G5886rjBaAp0AXcr07O0q7K1OXTayfIbd4zniKwDiLw=";
|
2017-12-22 14:35:33 +00:00
|
|
|
};
|
|
|
|
|
2022-01-16 16:53:09 +00:00
|
|
|
patches = [
|
|
|
|
# SConstruct patch
|
|
|
|
# Scons creates an independent environment that assumes standard POSIX paths.
|
|
|
|
# The patch is needed to push the nix environment.
|
|
|
|
# - PATH
|
|
|
|
# - PKG_CONFIG_PATH, to find available (sound) libraries
|
|
|
|
# - RPATH, to link to the newly built libraries
|
|
|
|
./honor_nix_environment.patch
|
|
|
|
];
|
|
|
|
|
2017-12-22 14:35:33 +00:00
|
|
|
nativeBuildInputs = [
|
2022-01-16 16:53:09 +00:00
|
|
|
ensureNewerSourcesForZipFilesHook
|
|
|
|
pkg-config
|
|
|
|
scons
|
2017-12-22 14:35:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-01-16 16:53:09 +00:00
|
|
|
glibmm
|
|
|
|
libpulseaudio
|
|
|
|
libao
|
|
|
|
speechd
|
2017-12-22 14:35:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A free and open source speech synthesizer for Russian language and others";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Olga-Yakovleva/RHVoice/wiki";
|
2017-12-22 14:35:33 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ berce ];
|
|
|
|
platforms = with lib.platforms; all;
|
|
|
|
};
|
|
|
|
}
|