2020-07-17 23:30:28 +00:00
|
|
|
{ stdenv, lib, pkgconfig, fetchFromGitHub, sconsPackages
|
2018-11-12 02:52:07 +00:00
|
|
|
, python, glibmm, libpulseaudio, libao }:
|
2017-12-22 14:35:33 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "unstable-2018-02-10";
|
2019-08-13 21:52:01 +00:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "rhvoice";
|
|
|
|
inherit version;
|
2017-12-22 14:35:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Olga-Yakovleva";
|
|
|
|
repo = "RHVoice";
|
|
|
|
rev = "7a25a881b0465e47a12d8029b56f3b71a1d02312";
|
|
|
|
sha256 = "1gkrlmv7msh9qlm0gkjqpl9gswghpclfdwszr1p85v8vk6m63v0b";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-07-17 23:30:28 +00:00
|
|
|
sconsPackages.scons_3_1_2 pkgconfig
|
2017-12-22 14:35:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python glibmm libpulseaudio libao
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
patches = [ ./honor_nix_environment.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A free and open source speech synthesizer for Russian language and others";
|
2020-04-01 01:11:51 +00: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;
|
|
|
|
};
|
|
|
|
}
|