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 }:
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
];

8
flake.lock generated
View file

@ -2,16 +2,16 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1734323986,
"narHash": "sha256-m/lh6hYMIWDYHCAsn81CDAiXoT3gmxXI9J987W5tZrE=",
"lastModified": 1747953325,
"narHash": "sha256-y2ZtlIlNTuVJUZCqzZAhIw5rrKP4DOSklev6c8PyCkQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "394571358ce82dff7411395829aa6a3aad45b907",
"rev": "55d1f923c480dadce40f5231feb472e81b0bab48",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.11",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}

View file

@ -1,7 +1,7 @@
{
description = "A flake for the mensa-tts system.";
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"
description = "Generate an automated broadcast from DB0KL for the mensa menu"
readme = "README.md"
requires-python = ">=3.9.0,<3.12" # Because of TTS
requires-python = ">=3.10.0"
dependencies = [
"librosa>=0.10.0",
"requests>=2.32.3",
"tts>=0.22.0",
"coqui-tts>=0.26.2",
]
[project.optional-dependencies]

4066
uv.lock generated

File diff suppressed because it is too large Load diff