Skip to content

Commit a6803ca

Browse files
authored
flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224)
1 parent 7dabc66 commit a6803ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"-DLLAMA_METAL=ON"
4444
]);
4545
installPhase = ''
46+
runHook preInstall
47+
4648
mkdir -p $out/bin
4749
mv bin/* $out/bin/
4850
mv $out/bin/main $out/bin/llama
@@ -51,6 +53,8 @@
5153
echo "#!${llama-python}/bin/python" > $out/bin/convert.py
5254
cat ${./convert.py} >> $out/bin/convert.py
5355
chmod +x $out/bin/convert.py
56+
57+
runHook postInstall
5458
'';
5559
meta.mainProgram = "llama";
5660
};

0 commit comments

Comments
 (0)