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 +1 @@
3.11 3.12

View file

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

8
flake.lock generated
View file

@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1734323986, "lastModified": 1747953325,
"narHash": "sha256-m/lh6hYMIWDYHCAsn81CDAiXoT3gmxXI9J987W5tZrE=", "narHash": "sha256-y2ZtlIlNTuVJUZCqzZAhIw5rrKP4DOSklev6c8PyCkQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "394571358ce82dff7411395829aa6a3aad45b907", "rev": "55d1f923c480dadce40f5231feb472e81b0bab48",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-24.11", "ref": "nixos-25.05",
"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-24.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
}; };

View file

@ -3,11 +3,11 @@ name = "mensa-tts"
version = "0.1.0" version = "0.1.0"
description = "Generate an automated broadcast from DB0KL for the mensa menu" description = "Generate an automated broadcast from DB0KL for the mensa menu"
readme = "README.md" readme = "README.md"
requires-python = ">=3.9.0,<3.12" # Because of TTS requires-python = ">=3.10.0"
dependencies = [ dependencies = [
"librosa>=0.10.0", "librosa>=0.10.0",
"requests>=2.32.3", "requests>=2.32.3",
"tts>=0.22.0", "coqui-tts>=0.26.2",
] ]
[project.optional-dependencies] [project.optional-dependencies]

4066
uv.lock generated

File diff suppressed because it is too large Load diff