mirror of
https://github.com/polygon/gpt4all-nix.git
synced 2024-09-11 13:45:59 +03:00
Merge pull request #2 from doronbehar/nix-cleanup
Main expression cleanup
This commit is contained in:
commit
1157ddcda5
@ -1,9 +1,8 @@
|
||||
{ src
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, qmake
|
||||
, qtwayland
|
||||
, qtquicktimeline
|
||||
, qtsvg
|
||||
, wrapQtAppsHook
|
||||
@ -27,11 +26,12 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtwayland
|
||||
qtquicktimeline
|
||||
qtsvg
|
||||
];
|
||||
|
||||
cmakeFlags = if withAvx2 then [] else [ "-DGPT4ALL_AVX_ONLY=ON" ];
|
||||
cmakeFlags = lib.optionals withAvx2 [ "-DGPT4ALL_AVX_ONLY=ON" ];
|
||||
|
||||
setSourceRoot = "sourceRoot=`pwd`/source/gpt4all-chat";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user