mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-26 19:55:04 +00:00
flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224)
This commit is contained in:
@ -43,6 +43,8 @@
|
|||||||
"-DLLAMA_METAL=ON"
|
"-DLLAMA_METAL=ON"
|
||||||
]);
|
]);
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mv bin/* $out/bin/
|
mv bin/* $out/bin/
|
||||||
mv $out/bin/main $out/bin/llama
|
mv $out/bin/main $out/bin/llama
|
||||||
@ -51,6 +53,8 @@
|
|||||||
echo "#!${llama-python}/bin/python" > $out/bin/convert.py
|
echo "#!${llama-python}/bin/python" > $out/bin/convert.py
|
||||||
cat ${./convert.py} >> $out/bin/convert.py
|
cat ${./convert.py} >> $out/bin/convert.py
|
||||||
chmod +x $out/bin/convert.py
|
chmod +x $out/bin/convert.py
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
meta.mainProgram = "llama";
|
meta.mainProgram = "llama";
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user