mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2025-02-22 15:40:02 +00:00
flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224)
This commit is contained in:
parent
7dabc66f3c
commit
a6803cab94
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,8 @@
|
|||
"-DLLAMA_METAL=ON"
|
||||
]);
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
mv bin/* $out/bin/
|
||||
mv $out/bin/main $out/bin/llama
|
||||
|
@ -51,6 +53,8 @@
|
|||
echo "#!${llama-python}/bin/python" > $out/bin/convert.py
|
||||
cat ${./convert.py} >> $out/bin/convert.py
|
||||
chmod +x $out/bin/convert.py
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
meta.mainProgram = "llama";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue