Allow for metal development in nix package
This commit is contained in:
parent
23e0eba66b
commit
a2b16d6172
1 changed files with 6 additions and 2 deletions
|
@ -67,7 +67,11 @@
|
||||||
"-DLLAMA_BLAS_VENDOR=OpenBLAS"
|
"-DLLAMA_BLAS_VENDOR=OpenBLAS"
|
||||||
]);
|
]);
|
||||||
postInstall = (if isAarch64 && isDarwin then
|
postInstall = (if isAarch64 && isDarwin then
|
||||||
nixpkgs.lib.concatLines [postInstall "cp $src/ggml-metal.h $out/include"] else postInstall);
|
nixpkgs.lib.concatLines [
|
||||||
|
postInstall
|
||||||
|
"cp $src/ggml-metal.h $out/include"
|
||||||
|
"cp $src/ggml-metal.metal $out/bin"
|
||||||
|
] else postInstall);
|
||||||
meta.mainProgram = "llama";
|
meta.mainProgram = "llama";
|
||||||
};
|
};
|
||||||
packages.opencl = pkgs.stdenv.mkDerivation {
|
packages.opencl = pkgs.stdenv.mkDerivation {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue