mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224)
This commit is contained in:
parent
7dabc66f3c
commit
a6803cab94
@ -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";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user