This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / stt / flake-module.nix
711 B 29 lines
1{ ... }: 2{ 3 perSystem = 4 { pkgs, self', ... }: 5 let 6 python = pkgs.python3.withPackages (_ps: [ 7 self'.packages.vosk 8 ]); 9 in 10 { 11 packages.stt = pkgs.stdenv.mkDerivation { 12 pname = "stt"; 13 version = "0.4.0"; 14 src = ./.; 15 nativeBuildInputs = [ pkgs.makeWrapper ]; 16 installPhase = '' 17 runHook preInstall 18 mkdir -p $out/bin 19 cp stt.py $out/bin/stt 20 chmod +x $out/bin/stt 21 wrapProgram $out/bin/stt \ 22 --prefix PATH : ${python}/bin \ 23 --set PYTHONPATH ${python}/${python.sitePackages} 24 runHook postInstall 25 ''; 26 meta.mainProgram = "stt"; 27 }; 28 }; 29}