nixpkgs/pkgs/applications/audio/rhvoice/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.2 KiB
Nix
Raw Normal View History

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 21:52:01 +00:00
pname = "rhvoice";
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;
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";
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;
};
}