Skip to content

Commit

Permalink
flake : add runHook preInstall/postInstall to installPhase so hooks f…
Browse files Browse the repository at this point in the history
…unction (ggerganov#2224)
  • Loading branch information
ddellacosta committed Jul 14, 2023
1 parent 7dabc66 commit a6803ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
};
Expand Down

0 comments on commit a6803ca

Please sign in to comment.