Files
nixpkgs/pkgs/by-name/ne/newelle/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

110 lines
1.8 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
gobject-introspection,
desktop-file-utils,
libadwaita,
vte-gtk4,
gsettings-desktop-schemas,
gtksourceview5,
webkitgtk_6_0,
lsb-release,
bash,
ffmpeg,
nix-update-script,
}:
let
version = "1.0.1";
in
python3Packages.buildPythonApplication {
pname = "newelle";
inherit version;
pyproject = false; # uses meson
src = fetchFromGitHub {
owner = "qwersyk";
repo = "Newelle";
tag = version;
hash = "sha256-l/eNf1KLZeuDWf1A/5Y8fggOovKmjW6UFNMvNxuJXkc=";
};
postPatch = ''
substituteInPlace src/utility/pip.py \
--replace-fail "# Manage pip path locking" "return None"
'';
nativeBuildInputs = [
meson
ninja
gobject-introspection
wrapGAppsHook4
desktop-file-utils
pkg-config
];
buildInputs = [
libadwaita
vte-gtk4
gsettings-desktop-schemas
gtksourceview5
webkitgtk_6_0
];
dependencies = with python3Packages; [
pygobject3
libxml2
pydub
gtts
speechrecognition
numpy
matplotlib
pylatexenc
pyaudio
pip-install-test
newspaper3k
tiktoken
openai
ollama
llama-index-core
llama-index-readers-file
google-genai
anthropic
];
strictDeps = true;
postInstallCheck = ''
mesonCheckPhase
'';
dontWrapGApps = true;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
"--prefix PATH : ${
lib.makeBinPath [
lsb-release
bash
ffmpeg
]
}"
];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/qwersyk/Newelle";
description = "Ultimate Virtual Assistant";
mainProgram = "newelle";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}