Skip to content

Commit

Permalink
koboldcpp: drop unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
DontEatOreo committed Oct 16, 2024
1 parent 8f1d455 commit acae8fa
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pkgs/by-name/ko/koboldcpp/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
makeWrapper,
gitUpdater,
python3Packages,
python311Packages ? null, # Ignored. Kept for compatibility with the release
tk,
addDriverRunpath,

Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit acae8fa

Please sign in to comment.