From: Dave Della Costa Date: Fri, 14 Jul 2023 19:13:38 +0000 (-0400) Subject: flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224) X-Git-Tag: gguf-v0.4.0~464 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=a6803cab946c817fb7aaf2a40b317f5d3e373bd1;p=pkg%2Fggml%2Fsources%2Fllama.cpp flake : add runHook preInstall/postInstall to installPhase so hooks function (#2224) --- diff --git a/flake.nix b/flake.nix index cebb47b9..dda7ee7b 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"; };