lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python313Packages.llama-cpp-python: restore fix for zero MTL devices (#436282)

authored by

kirillrdy and committed by
GitHub
e160d701 d76a9a52

+12
+12
pkgs/development/python-modules/llama-cpp-python/default.nix
··· 4 4 gcc13Stdenv, 5 5 buildPythonPackage, 6 6 fetchFromGitHub, 7 + fetchpatch, 7 8 8 9 # nativeBuildInputs 9 10 cmake, ··· 50 51 fetchSubmodules = true; 51 52 }; 52 53 # src = /home/gaetan/llama-cpp-python; 54 + 55 + patches = [ 56 + # Fix test failure on a machine with no metal devices (e.g. nix-community darwin builder) 57 + # https://github.com/ggml-org/llama.cpp/pull/15531 58 + (fetchpatch { 59 + url = "https://github.com/ggml-org/llama.cpp/pull/15531/commits/63a83ffefe4d478ebadff89300a0a3c5d660f56a.patch"; 60 + stripLen = 1; 61 + extraPrefix = "vendor/llama.cpp/"; 62 + hash = "sha256-9LGnzviBgYYOOww8lhiLXf7xgd/EtxRXGQMredOO4qM="; 63 + }) 64 + ]; 53 65 54 66 dontUseCmakeConfigure = true; 55 67 SKBUILD_CMAKE_ARGS = lib.strings.concatStringsSep ";" (