koboldcpp: drop unused args

This commit is contained in:
DontEatOreo 2024-10-16 17:04:13 +03:00
parent 0453fe2395
commit 6e9650ad50
No known key found for this signature in database
GPG Key ID: 0DB5361BEEE530AB

View File

@ -5,7 +5,6 @@
makeWrapper,
gitUpdater,
python3Packages,
python311Packages ? null, # Ignored. Kept for compatibility with the release
tk,
addDriverRunpath,
@ -31,9 +30,7 @@
vulkanSupport ? true,
vulkan-loader,
metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64,
march ? "",
mtune ? "",
metalSupport ? stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
}:
let
@ -115,14 +112,6 @@ effectiveStdenv.mkDerivation (finalAttrs: {
env.NIX_LDFLAGS = lib.concatStringsSep " " (finalAttrs.darwinLdFlags ++ finalAttrs.metalLdFlags);
env.NIX_CFLAGS_COMPILE =
lib.optionalString (march != "") (
lib.warn "koboldcpp: the march argument is only kept for compatibility; use overrideAttrs intead" "-march=${march}"
)
+ lib.optionalString (mtune != "") (
lib.warn "koboldcpp: the mtune argument is only kept for compatibility; use overrideAttrs intead" "-mtune=${mtune}"
);
makeFlags = [
(makeBool "LLAMA_OPENBLAS" openblasSupport)
(makeBool "LLAMA_CUBLAS" cublasSupport)