mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
llama-cpp: 1742 -> 1848
This commit is contained in:
parent
8bb443b2b8
commit
49309c0d27
@ -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\";"
|
||||
|
Loading…
Reference in New Issue
Block a user