-
-
Notifications
You must be signed in to change notification settings - Fork 147
Description
I'm trying to build neuron using plain cabal, instead of via Nix as documented, so I could be missing something. There are a few hacks needed on the way to reproduce the following problem, but basically, if I run cabal install neuron, I get the error that neuron-search could not be found while compiling neuron/src/app/Neuron/CLI/Search.hs.
In neuron/src/app/Neuron/CLI/Search.hs, the function staticWhich from the package "which" is used to find the path to the bash script neuron-search.
| neuronSearchScript = $(staticWhich "neuron-search") |
I could make it compile using the Paths_neuron module instead, but I'm not sure whether that would work for Nix. Does this look like an acceptable fix?
neuronSearchScript = $(TH.lift (unsafePerformIO (getDataFileName "src-bash/neuron-search")))Lysxia@51e5eb0#diff-156fa4df5d0d36eccfe427a54b100371R22
(Note: I'm actually using tag 0.6.0.0 instead of master, to avoid rib-core, but the relevant line of code hasn't changed so the issue still seems current.)