diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index 6795d22e9782..a5b44e83a80b 100644 --- a/pkgs/by-name/ll/llama-cpp/package.nix +++ b/pkgs/by-name/ll/llama-cpp/package.nix @@ -22,6 +22,10 @@ , pkg-config }: +assert lib.assertMsg + (lib.count lib.id [openclSupport openblasSupport rocmSupport] == 1) + "llama-cpp: exactly one of openclSupport, openblasSupport and rocmSupport should be enabled"; + let cudatoolkit_joined = symlinkJoin { name = "${cudaPackages.cudatoolkit.name}-merged";