This commit is contained in:
2024-10-20 13:08:58 -04:00
parent 2981b0bf7e
commit 1ba1355745
5 changed files with 26 additions and 45 deletions

View File

@@ -29,30 +29,10 @@ let
gpt4all_package = (
optimizeWithFlags
(pkgs.gpt4all.overrideAttrs (old: {
version = "3.4.2";
src = pkgs.fetchFromGitHub {
fetchSubmodules = true;
owner = "nomic-ai";
repo = "gpt4all";
rev = "v3.4.2";
sha256 = "QzU22y6tt3UhazVSPcFuKejH4AV+mw7JExH61NtAKoM=";
};
cmakeFlags = old.cmakeFlags ++ [
"-DGGML_VULKAN=ON"
"-DGGML_KOMPUTE=ON"
];
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
[