How to use OhMyREPL's FZF history search with NixOS

I’m trying to use OhMyREPL’s fuzzy history search, which uses fzf. I am on NixOS and I have the fzf binary available, but I think OMR tries to use it’s own fzf which is not something that NixOS can run. When I try Ctrl+R I get:

Could not start dynamically linked executable: ~/.julia/artifacts/776315fc8f986a42d99522f5d7bda33054e7ae6e/bin/fzf
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld

Any suggestions how to get around this?

Did you try reading the error message and following the link provided there? For example, the suggestion of using nix-ld mentioned in that page was also made several times on this forum, most recent one being

Using nix-ld is a pretty extreme solution for what should be a minor problem I think. If OhMyREPL is just calling fzf, it seems having it call the binary already available instead of it’s own is a much less intrusive solution.

Edit: To be clear, using nix-ld works and is a very simple to implement. I’m just wondering what the more pure solution would be.

we are just calling fzf, but the fzf comes from a JLL, so my question is how would any JLL work on Nix if this doesn’t work? Should we compile the fzf JLL a different way?

No.