fix gpt4all

This commit is contained in:
2024-10-16 22:01:25 -04:00
parent fddb34888a
commit 705e31e76c
6 changed files with 34 additions and 67 deletions

View File

@@ -29,13 +29,13 @@ let
gpt4all_package = (
optimizeWithFlags
(pkgs.gpt4all.overrideAttrs (old: {
version = "3.4.1";
version = "3.4.2";
src = pkgs.fetchFromGitHub {
fetchSubmodules = true;
owner = "nomic-ai";
repo = "gpt4all";
rev = "v3.4.1";
sha256 = "L29ZQlDDJlh538cgAGuo/ijtBQvZ0vloH4vdJ1oIe5I=";
rev = "v3.4.2";
sha256 = "QzU22y6tt3UhazVSPcFuKejH4AV+mw7JExH61NtAKoM=";
};
cmakeFlags = old.cmakeFlags ++ [
@@ -46,12 +46,18 @@ let
patches = old.patches ++ [
./disable-settings-err.patch
./disable-version-check.patch
(pkgs.fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/004-fix-build-with-qt-6.8.0.diff?h=gpt4all-chat&id=d14b12cb63fae95e578aa839a570189a23833051";
sha256 = "3Zur9KFn45f4dgAzOF7p1q42IdLqXwioN4zMiBbWbVU=";
stripLen = 1;
})
];
}))
# compile flags
[
"-Ofast"
"-O3"
"-ffast-math"
"-march=native"
"-mtune=native"
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461