File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 4
4
pkgs . writeShellApplication {
5
5
name = "piper" ;
6
6
text = ''
7
- export PIPER_VOICES="${ import ./piper-voices.nix } "
7
+ export PIPER_VOICES="${ import ./piper-voices-full .nix } "
8
8
cmd="$*"
9
9
eval "set -- $cmd"
10
10
echo "==> show"
You can’t perform that action at this time.
0 commit comments