From b5ba7396ade4f1295cd99bd1e2ef440647c244fc Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Thu, 17 Jul 2025 20:18:31 +0300 Subject: [PATCH] koboldcpp: 1.95.1 -> 1.96 Changelog: https://github.com/LostRuins/koboldcpp/releases/tag/v1.96 Diff: https://github.com/LostRuins/koboldcpp/compare/v1.95.1...v1.96 --- pkgs/by-name/ko/koboldcpp/package.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ko/koboldcpp/package.nix b/pkgs/by-name/ko/koboldcpp/package.nix index d5fc0c3e8122..503c3d579a90 100644 --- a/pkgs/by-name/ko/koboldcpp/package.nix +++ b/pkgs/by-name/ko/koboldcpp/package.nix @@ -41,13 +41,13 @@ let in effectiveStdenv.mkDerivation (finalAttrs: { pname = "koboldcpp"; - version = "1.95.1"; + version = "1.96"; src = fetchFromGitHub { owner = "LostRuins"; repo = "koboldcpp"; tag = "v${finalAttrs.version}"; - hash = "sha256-aoVOEPK3hPuzkrHIFvDrnAw2D/OxXlRLXXP0CZJghx4="; + hash = "sha256-/kHx2v9g0o5eh38d9hlhc724vQNTXVpaX1GeQouJPhk="; }; enableParallelBuilding = true; @@ -88,6 +88,12 @@ effectiveStdenv.mkDerivation (finalAttrs: { (lib.optionals cublasSupport "CUDA_DOCKER_ARCH=${builtins.head cudaArches}") ]; + env = { + # Fixes an issue where "fprintf" is being called with a format string that isn't a string literal + NIX_CFLAGS_COMPILE = lib.optionalString vulkanSupport "-Wno-error=format-security"; + NIX_CXXFLAGS_COMPILE = lib.optionalString vulkanSupport "-Wno-error=format-security"; + }; + installPhase = '' runHook preInstall