From 92e4d293202bb30e81d6c34b6d3a84d23e560292 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 15 Sep 2023 23:23:56 +0200 Subject: [PATCH] nix: add missing install hooks to cuda --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 673f7021771c05..c72d8e4e7197da 100644 --- a/flake.nix +++ b/flake.nix @@ -80,6 +80,8 @@ buildFlags = [ "LLAMA_CUBLAS=1" ]; installPhase = '' + runHook preInstall + mkdir -p $out/bin # TODO(Green-Sky): add install target to Makefile, or wait for cmake support @@ -91,6 +93,8 @@ mv quantize $out/bin/ mv llama-bench $out/bin/ mv train-text-from-scratch $out/bin/ + + runHook postInstall ''; }; packages.rocm = pkgs.stdenv.mkDerivation {