diff --git a/pkgs/development/interpreters/guile/default.nix b/pkgs/development/interpreters/guile/default.nix index 0c3aeb07a1e1..5a5df9eed3ef 100644 --- a/pkgs/development/interpreters/guile/default.nix +++ b/pkgs/development/interpreters/guile/default.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation rec { wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin" ''; + preBuild = '' + sed -e '/lt_dlinit/a lt_dladdsearchdir("'$out/lib'");' -i libguile/dynl.c + ''; + doCheck = true; setupHook = ./setup-hook.sh;