diff --git a/doc/using/overlays.xml b/doc/using/overlays.xml
index ada9ab389328..3fa68e32a3c5 100644
--- a/doc/using/overlays.xml
+++ b/doc/using/overlays.xml
@@ -220,7 +220,7 @@ self: super:
liblapack.so.3. For instance:
-$ LD_LIBRARY_PATH=$(nix-build -A mkl):$LD_LIBRARY_PATH nix-shell -p octave --run octave
+$ LD_LIBRARY_PATH=$(nix-build -A mkl)/lib:$LD_LIBRARY_PATH nix-shell -p octave --run octave
Intel MKL requires an openmp implementation