Upgraded to nixos 25.05

This commit is contained in:
Sebastian 2025-05-24 17:13:22 +02:00
parent 37ae69c2c6
commit 26ceeece7b
6 changed files with 1977 additions and 2134 deletions

View file

@ -1,19 +1,25 @@
{ lib, python311Packages, pkgs }:
with python311Packages;
{ lib, python312Packages, pkgs }:
with python312Packages;
let
# Stripped down version of the tts package (original is broken and needs cuda)
tts =
# Maintained fork of the original TTS package
coqui-tts =
let
pname = "TTS";
version = "0.22.0";
pname = "coqui_tts";
version = "0.26.2";
in
buildPythonPackage {
inherit pname version;
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-uREZ2n/yrns9rnMo7fmvTbO0jEDrTOFdEe2PXum9cIY=";
sha256 = "sha256-DSD5W3Pl82hH0RxO0Vnme/2fozZlRmBRMbmKMRboNjc=";
};
doCheck = false;
pyproject = true;
build-system = [
hatchling
];
nativeBuildInputs = [ pkgs.espeak-ng ];
@ -37,6 +43,13 @@ let
jieba
pypinyin
pkgs.espeak
einops
encodec
librosa
monotonic-alignment-search
scipy
tqdm
transformers
];
};
in
@ -53,7 +66,7 @@ buildPythonApplication {
dependencies = [
requests
tts
coqui-tts
librosa
];