diff --git a/pkgs/by-name/ko/koboldcpp/package.nix b/pkgs/by-name/ko/koboldcpp/package.nix index 8c9d3adf969f..773bc43ed13d 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; @@ -89,6 +89,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