aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index cebb47b..dda7ee7 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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";
};