summaryrefslogtreecommitdiff
path: root/whisper-dictate/default.nix
diff options
context:
space:
mode:
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[@]}")
+ '';
+}