Unverified Commit b5ba7396 authored by DontEatOreo's avatar DontEatOreo
Browse files
parent 5f80e843
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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