Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
939 B
Nix
51 lines
939 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
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;
|
|
}
|