-
Notifications
You must be signed in to change notification settings - Fork 701
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
Give an example for --enable-nix
flag
#8333
Conversation
Does IIRC, |
It does not seems to be involved in
I think it's beyond the scope of this PR, but there's also |
The plan is to remove them "soon". |
Even bigger context ticket to completely overhaul the flags displayed in cabal: #7437 |
Until we explicitly decide to allocate resource and time to go forward with the flag deprecation, I'll vote in favour to integrate this PR. |
@blackheaven: are you a user of --enable-nix? Do we have users of that (I know we have users of v1-)? |
I was just struggling with Nix |
Then I'm +1 on improving the documentation for as long as we keep the option. I seem to remember Nix is also used via the Setup interface, which is sort of v1-, but without involving cabal-install. Perhaps that's something you'd rather use? It's not going to be ripped out. OTOH, it doesn't need the |
doc/nix-integration.rst
Outdated
option when you call ``cabal``. To use this option everywhere, edit | ||
your :ref:`global configuration file<config-file-discovery>` | ||
(default: ``$HOME/.cabal/config``) to include: | ||
To enable Nix integration, simply pass the ``--enable-nix`` global option when you call ``cabal`` (eg. ``cabal --enable-nix build``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid this won't work with new enough cabals, because now build
is an alias for v2-build
. You probably want to say v1-build
. Actually, if the flag does nothing with v2- commands, it would be great to also change all the examples below by prepending command names with v1-
? Otherwise, we are just adding content to misleading documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
To give a broader context, at work we use nix + bazel for the build and I have started a toy project, and, trying to keep the same workflow, I have a hard time figuring out that packages should be injected from nix instead of having Saying it out-loud seems reasonable, but the thing is, I had a hard time to find coherent examples. |
If you only need |
Sure, but at the time I was trying to get something compiling. |
I see. All I want to say is that I think that whatever it is that you're trying to do, it does not have to go via Thank you for contributing and good luck anyway! |
Is mergify stuck? |
ooh so the waiting period is enforced by mergify now. neat! |
One more context ticket, after the fact: #6444 |
Just a clarification in the documentation