Skip to content

Commit f5e29b4

Browse files
committed
piper-voices-full and piper-voices-mini
1 parent e446a17 commit f5e29b4

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed
File renamed without changes.

nix/piper-voices-mini.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{langs}: let
2+
pkgs = import ./nixpkgs.nix;
3+
full = import ./piper-voices-full.nix;
4+
in
5+
pkgs.stdenv.mkDerivation {
6+
name = "piper-voices-${pkgs.lib.concatStringsSep "-" langs}";
7+
src = full;
8+
dontBuild = true;
9+
dontUnpack = true;
10+
installPhase = ''
11+
mkdir -p $out
12+
cp "$src/voices.json" "$out/voices.json"
13+
for dir in ${pkgs.lib.concatStringsSep " " langs}; do
14+
cp -R "$src/$dir" "$out/$dir"
15+
done
16+
'';
17+
}

nix/piper.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ in
44
pkgs.writeShellApplication {
55
name = "piper";
66
text = ''
7-
export PIPER_VOICES="${import ./piper-voices.nix}"
7+
export PIPER_VOICES="${import ./piper-voices-full.nix}"
88
cmd="$*"
99
eval "set -- $cmd"
1010
echo "==> show"

0 commit comments

Comments
 (0)