summaryrefslogtreecommitdiff
path: root/whisper-dictate/default.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-09-18 11:42:17 -0400
committerBen Sima <ben@bensima.com>2025-09-18 11:42:17 -0400
commitf8d26da7c054c0a4c89ab12993e00f74ea9260a1 (patch)
tree3d73580d38a1296c512433b32fa43ada0dfa6d10 /whisper-dictate/default.nix
parent1c6de10ac4f9808e3a480ed7b7b11577d13ad005 (diff)
add whisper-dictate subserviceHEADmaster
Diffstat (limited to 'whisper-dictate/default.nix')
-rw-r--r--whisper-dictate/default.nix35
1 files changed, 35 insertions, 0 deletions
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 <nixpkgs> {}}:
+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[@]}")
+ '';
+}