You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to build and prevent a build problem on Nix,
pcre-light > Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4: Missing dependency on a foreign
pcre-light > library:
pcre-light > * Missing (or bad) C library: pcre
pcre-light > This problem can usually be solved by installing the system package that
pcre-light > provides this library (you may need the "-dev" version). If the library is
pcre-light > already installed but in a non-standard location then you can use the flags
pcre-light > --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
pcre-light > library file does exist, it may contain errors that are caught by the C
pcre-light > compiler at the preprocessing stage. In this case you can re-run configure
pcre-light > with the verbosity flag -v3 to see the error messages.
thanks for reporting this one! As I have zero experience with Nix, I never checked whether it actually builds or not. If I got it correctly, can I just add the
nix:
enable: truepackages: [pcre]
to headroom's stack.yaml and that will fix the things for all users eventually trying to use it with Nix?
Also thanks a lot for your kind words, I'm really happy you like this tool 🙂 If you have any ideas how to further improve it, let me know or feel free to open new issue with feature request.
I don't have a lot of expertise in Nix (despite running NixOS on my machine machine :), but it looks like you can't just use that stanza in stack.yaml, on my non-Nix machine:
Executable named nix-shell not found on path: ....
A better option is probably using the nix way with default.nix or even something in the Makefile like
@adamflott Thanks for the details. If you try to make this working for you locally anyway, would you feel comfortable enough to push the necessary changes as PR? You still have way more Nix knowledge than me, I never had chance to use it yet. 😀
In order to build and prevent a build problem on Nix,
The user needs to specify on the command line,
or in
stack.yaml
Or use another method documented at https://docs.haskellstack.org/en/latest/nix_integration/
Btw: love this tool!
The text was updated successfully, but these errors were encountered: