Skip to content

Question about dependency on "which" #392

Description

@Lysxia

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionForum like question asked; not exactly a feature or a bug.

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions