From 49309c0d27b332bfe2f233d6dec3e29001da280a Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Fri, 12 Jan 2024 19:01:51 -0800 Subject: [PATCH] llama-cpp: 1742 -> 1848 --- pkgs/by-name/ll/llama-cpp/package.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/ll/llama-cpp/package.nix b/pkgs/by-name/ll/llama-cpp/package.nix index 7dbdf4ea6476..379673740aee 100644 --- a/pkgs/by-name/ll/llama-cpp/package.nix +++ b/pkgs/by-name/ll/llama-cpp/package.nix @@ -2,7 +2,6 @@ , cmake , darwin , fetchFromGitHub -, fetchpatch , nix-update-script , stdenv @@ -30,26 +29,15 @@ let in effectiveStdenv.mkDerivation (finalAttrs: { pname = "llama-cpp"; - version = "1742"; + version = "1848"; src = fetchFromGitHub { owner = "ggerganov"; repo = "llama.cpp"; rev = "refs/tags/b${finalAttrs.version}"; - hash = "sha256-0xpWDKzRcm32jkPsvHD2o9grUdo9n+4cvpYiKQ8LqRY="; + hash = "sha256-KuomiKU9c06Ux/ZcqctFdPQykGtjDzArN+tElPJVQ60="; }; - patches = [ - # openblas > v0.3.21 64-bit pkg-config file is now named openblas64.pc - # can remove when patch is accepted upstream - # https://github.com/ggerganov/llama.cpp/pull/4134 - (fetchpatch { - name = "openblas64-pkg-config.patch"; - url = "https://github.com/ggerganov/llama.cpp/commit/c885cc9f76c00557601b877136191b0f7aadc320.patch"; - hash = "sha256-GBTxCiNrCazYRvcHwbqVMAALuJ+Svzf5BE7+nkxw064="; - }) - ]; - postPatch = '' substituteInPlace ./ggml-metal.m \ --replace '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";"