Updated to nixos 25.11

Updated TTS to 0.27.2
This commit is contained in:
Sebastian 2025-12-13 11:45:06 +01:00
parent e9745d566c
commit 380f0d5ada
4 changed files with 39 additions and 10 deletions

View file

@ -1,17 +1,17 @@
{ lib, python312Packages, pkgs }: { lib, python313Packages, pkgs }:
with python312Packages; with python313Packages;
let let
# Maintained fork of the original TTS package # Maintained fork of the original TTS package
coqui-tts = coqui-tts =
let let
pname = "coqui_tts"; pname = "coqui_tts";
version = "0.26.2"; version = "0.27.2";
in in
buildPythonPackage { buildPythonPackage {
inherit pname version; inherit pname version;
src = pkgs.fetchPypi { src = pkgs.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-DSD5W3Pl82hH0RxO0Vnme/2fozZlRmBRMbmKMRboNjc="; sha256 = "sha256-GBxcUf4sVxG0H54KHMvSaZZXI1vpJ3oEruwoWhihtpM=";
}; };
doCheck = false; doCheck = false;
pyproject = true; pyproject = true;
@ -21,6 +21,35 @@ let
]; ];
postPatch =
let
relaxedConstraints = [
"bnunicodenormalizer"
"coqpit-config"
"cython"
"gruut"
"inflect"
"librosa"
"mecab-python3"
"numba"
"numpy"
"unidic-lite"
"trainer"
"spacy\\[ja\\]"
"transformers"
"torch"
"torchaudio"
];
in
''
sed -r -i \
${lib.concatStringsSep "\n" (
map (package: ''-e 's/${package}\s*[<>=]+[^"]+/${package}/g' \'') relaxedConstraints
)}
pyproject.toml
'';
nativeBuildInputs = [ pkgs.espeak-ng ]; nativeBuildInputs = [ pkgs.espeak-ng ];
dependencies = [ dependencies = [

8
flake.lock generated
View file

@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1753749649, "lastModified": 1765311797,
"narHash": "sha256-+jkEZxs7bfOKfBIk430K+tK9IvXlwzqQQnppC2ZKFj4=", "narHash": "sha256-mSD5Ob7a+T2RNjvPvOA1dkJHGVrNVl8ZOrAwBjKBDQo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1f08a4df998e21f4e8be8fb6fbf61d11a1a5076a", "rev": "09eb77e94fa25202af8f3e81ddc7353d9970ac1b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-25.05", "ref": "nixos-25.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View file

@ -1,7 +1,7 @@
{ {
description = "A flake for the mensa-tts system."; description = "A flake for the mensa-tts system.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
}; };

View file

@ -67,7 +67,7 @@ DAYS = {
START = ( START = (
"Achtung! Achtung! Meine Damen und Herren, D B 0 K L bittet um ihre Aufmerksamkeit!\n" "Biep. Achtung! Achtung! Meine Damen und Herren, D B 0 K L bittet um ihre Aufmerksamkeit!\n"
+ "Es folgt der Mensaplan für heute, den " + "Es folgt der Mensaplan für heute, den "
) )