llama-cpp: 1742 -> 1848
This commit is contained in:
parent
8bb443b2b8
commit
49309c0d27
1 changed files with 2 additions and 14 deletions
|
@ -2,7 +2,6 @@
|
||||||
, cmake
|
, cmake
|
||||||
, darwin
|
, darwin
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
, stdenv
|
, stdenv
|
||||||
|
|
||||||
|
@ -30,26 +29,15 @@ let
|
||||||
in
|
in
|
||||||
effectiveStdenv.mkDerivation (finalAttrs: {
|
effectiveStdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "llama-cpp";
|
pname = "llama-cpp";
|
||||||
version = "1742";
|
version = "1848";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ggerganov";
|
owner = "ggerganov";
|
||||||
repo = "llama.cpp";
|
repo = "llama.cpp";
|
||||||
rev = "refs/tags/b${finalAttrs.version}";
|
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 = ''
|
postPatch = ''
|
||||||
substituteInPlace ./ggml-metal.m \
|
substituteInPlace ./ggml-metal.m \
|
||||||
--replace '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";"
|
--replace '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";"
|
||||||
|
|
Loading…
Reference in a new issue