diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix b/nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix index 85ddf9c2dd6f..379673740aee 100644 --- a/nixpkgs/pkgs/by-name/ll/llama-cpp/package.nix +++ b/nixpkgs/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 = "1710"; + version = "1848"; src = fetchFromGitHub { owner = "ggerganov"; repo = "llama.cpp"; rev = "refs/tags/b${finalAttrs.version}"; - hash = "sha256-fbzHjaL+qAE9HdtBVxboo8T2/KCdS5O1RkTQvDwD/xs="; + 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\";" |