blob: cbb52f5038fe201a8dc35da40e354d328a3775ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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[@]}")
'';
}
|