flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224)

This commit is contained in:
Dave Della Costa 2023-07-14 15:13:38 -04:00 committed by GitHub
parent 7dabc66f3c
commit a6803cab94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
};