-
-
Notifications
You must be signed in to change notification settings - Fork 150
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about dependency on "which" #392
Comments
May I know the reason for trying to build it with plain cabal, outside of Nix? Generally speaking, this is best done in the |
I don't want to install and learn to use yet another package manager. The required changes to build with vanilla cabal are quite minor; I can volunteer to patch and maintain anything that has to do with this, but I would also understand if you just don't want the extra overhead; this issue is the only one I'm not sure how to fix without breaking stuff. The linked patch to |
Since this is the only place where I don't particularly like seeing unsafePerformIO here (doesn't seem like a conventional solution; is that what all these TH libraries do?). In any case, whatever change we make should continue to work in nix-build ( |
Plus, it should not revert the nix install size optimizations done in #193 (comment) (do a nix install on a fresh Ubuntu VM, and check the size of /nix). I vaguely remember seeing an issue with cabal's Paths_neuron adding unnecessary dependencies. |
The conventional solution is to use |
Awesome! |
Had to revert that. If you're interested, please see #432 Enough dealing with non-nix requests for me today. |
Closing per https://neuron.zettel.page/next ... to further discuss this idea, in the context of Emanote, post here |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 thatneuron-search
could not be found while compilingneuron/src/app/Neuron/CLI/Search.hs
.In
neuron/src/app/Neuron/CLI/Search.hs
, the functionstaticWhich
from the package "which" is used to find the path to the bash scriptneuron-search
.neuron/neuron/src/app/Neuron/CLI/Search.hs
Line 20 in 7d57e45
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?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.)
The text was updated successfully, but these errors were encountered: