Merge pull request #2 from doronbehar/nix-cleanup

Main expression cleanup
This commit is contained in:
polygon 2023-05-21 13:20:17 +02:00 committed by GitHub
commit 1157ddcda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";