I’m able to run the raku repl just fine, but I’m having a bit of trouble installing things with zef. Running nix-shell -p readline --run "zef install Readline" fails with a bunch of Cannot locate native library '(null)': libreadline.so.7: cannot open shared object file: No such file or directory errors. How do I get zef to work properly with Nix?
For native libraries raku needs to find them in the LD_LIBRARY_PATH.
I’m working on setting up a rakuPackage function for Nix that handles native libraries (by propagating LD_LIBRARY_PATH trough a setup-hook). Have a look at the rakuPackage branch of GitHub - stigtsp/nur if you’re interested which contains derivations for a few modules depending on native libraries (like OpenSSL). It’s still work in progress, I hope to work a bit more on it this month.