forked from qwersyk/Newelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
99 lines (90 loc) · 1.82 KB
/
package.nix
File metadata and controls
99 lines (90 loc) · 1.82 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
stdenv,
libadwaita,
lib,
python3,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
docutils,
desktopToDarwinBundle,
vte-gtk4,
dconf,
gobject-introspection,
glib-networking,
gsettings-desktop-schemas,
adwaita-icon-theme,
gtksourceview5,
desktop-file-utils,
lsb-release,
webkitgtk_6_0
}:
let
pythonDependencies = with python3.pkgs; [
pygobject3
libxml2
requests
pydub
gtts
speechrecognition
numpy
matplotlib
newspaper3k
lxml
lxml-html-clean
pylatexenc
pyaudio
tiktoken
openai
ollama
llama-index-core
llama-index-readers-file
pip-install-test
cssselect
markdownify
];
in
stdenv.mkDerivation rec {
pname = "newelle";
version = "0.9.6";
format = "other";
src = ./.;
strictDeps = true;
nativeBuildInputs = [
meson
ninja
gobject-introspection # for setup hook populating GI_TYPELIB_PATH
docutils
wrapGAppsHook4
desktop-file-utils
pkg-config
] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
buildInputs =
[
libadwaita
python3
gobject-introspection
vte-gtk4
dconf
adwaita-icon-theme
gsettings-desktop-schemas
gtksourceview5
desktop-file-utils
lsb-release
webkitgtk_6_0
glib-networking
];
preFixup = ''
glib-compile-schemas $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas
gappsWrapperArgs+=(--set PYTHONPATH "${python3.pkgs.makePythonPath pythonDependencies}")
patchShebangs $out/bin
'';
meta = with lib; {
homepage = "https://github.com/qwersyk/Newelle";
description = "Newelle - Your Ultimate Virtual Assistant ";
mainProgram = "newelle";
license = licenses.gpl3;
platforms = platforms.unix;
};
}