From f8d26da7c054c0a4c89ab12993e00f74ea9260a1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 18 Sep 2025 11:42:17 -0400 Subject: add whisper-dictate subservice --- whisper-dictate/default.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 whisper-dictate/default.nix (limited to 'whisper-dictate/default.nix') diff --git a/whisper-dictate/default.nix b/whisper-dictate/default.nix new file mode 100644 index 0000000..cbb52f5 --- /dev/null +++ b/whisper-dictate/default.nix @@ -0,0 +1,35 @@ +{pkgs ? import {}}: +pkgs.python3Packages.buildPythonApplication { + pname = "whisper-dictate"; + version = "0.1.0"; + src = ./.; + + format = "setuptools"; + + nativeBuildInputs = with pkgs; [ + wrapGAppsHook + gobject-introspection + ]; + + buildInputs = with pkgs; [ + gtk3 + libappindicator-gtk3 + glib + ]; + + propagatedBuildInputs = with pkgs; [ + python3Packages.pygobject3 + python3Packages.openai-whisper + alsa-utils + xdotool + xsel # more reliable than xclip + ]; + + strictDeps = false; + + dontWrapGApps = false; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; +} -- cgit v1.2.3