# How to use OhMyREPL's FZF history search with NixOS

**URL:** <https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150>\
**Category:** General Usage\
**Tags:** ohmyrepl, nixos\
**Created:** [July 28, 2025, 10:58pm UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150 "2025-07-28T22:58:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![torgo](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@torgo](https://discourse.julialang.org/u/torgo)\
**Post date:** [July 28, 2025, 10:58pm UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150/1 "2025-07-28T22:58:11Z")

</div>

I’m trying to use OhMyREPL’s [fuzzy history search](https://kristofferc.github.io/OhMyREPL.jl/latest/features/fzf/), 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:

```julia
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?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 28, 2025, 11:07pm UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150/2 "2025-07-28T23:07:51Z")

</div>

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 Juliaup on NixOS (2025 edition)](https://discourse.julialang.org/t/using-juliaup-on-nixos-2025-edition/130250):
>
> Hey Julia friends. I’ve been trying to figure this out this morning in response to a student who is using NixOS and has convinced me to give it a try. In general on NixOS nothing is in the filesystem where things expect them to be (like in /lib or /usr/lib/ or /usr/bin/ or anything like that). This means if you download precompiled binaries off the internet they generally won’t run. So if you want to use juliaup in your home directory on a NixOS machine, here’s how I got it working (apparently,…

---

<div class="post-metadata">

**Author:** ![torgo](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@torgo](https://discourse.julialang.org/u/torgo)\
**Post date:** [July 29, 2025, 1:56am UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150/3 "2025-07-29T01:56:15Z")

</div>

> [@torgo](#):
>
> `https://nix.dev/permalink/stub-ld`

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.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [July 29, 2025, 2:27am UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150/4 "2025-07-29T02:27:32Z")

</div>

> [@torgo](#):
>
> `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.

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?

> <https://github.com/Moelf/JLFzf.jl/blob/cddfbbc3cacc3589c79c084d009f0b443c733a68/src/JLFzf.jl#L41>

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 29, 2025, 7:18am UTC](https://discourse.julialang.org/t/how-to-use-ohmyrepls-fzf-history-search-with-nixos/131150/5 "2025-07-29T07:18:55Z")

</div>

> [@jling](#):
>
> Should we compile the fzf JLL a different way?

No.
