Repository navigation
[doc] Remove references to "Nix" in "How to build locally..." #11008
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,10 @@ | ||
| .. _nix-style-builds: | ||
|
|
||
| How to build locally like in Nix | ||
| ================================ | ||
|
|
||
| Nix-style local builds are a new build system implementation inspired by Nix. | ||
| The Nix-style local build system is commonly called "v2-build" for short | ||
| after the ``cabal v2-*`` family of commands that control it. However, those | ||
| names are only temporary now that Nix-style local builds have become the | ||
| default. For those who do not wish to use the new | ||
| functionality, the classic project style will not be removed immediately, | ||
| but these legacy commands will require the usage of the ``v1-`` prefix as of | ||
| Cabal 3.0 and will be removed in a future release. For a future-proof | ||
| way to use these commands in a script or tutorial that anticipates the | ||
| possibility of another UI paradigm being devised in the future, there | ||
| are also ``v2-`` prefixed versions that will reference the same functionality | ||
| until such a point as it is completely removed from Cabal. | ||
|
|
||
| Nix-style local builds combine the best of non-sandboxed and sandboxed Cabal: | ||
|
|
||
| 1. Like sandboxed Cabal previously, we build sets of independent local | ||
| packages deterministically and independent of any global state. | ||
| v2-build will never tell you that it can't build your package | ||
| because it would result in a "dangerous reinstall." Given a | ||
| particular state of the Hackage index, your build is completely | ||
| reproducible. For example, you no longer need to compile packages | ||
| with profiling ahead of time; just request profiling and v2-build | ||
| will rebuild all its dependencies with profiling automatically. | ||
|
|
||
| 2. Like non-sandboxed Cabal today, builds of external packages are | ||
| cached in a global store, so that a package can be built once, | ||
| and then reused anywhere else it is also used. No need to continually | ||
| rebuild dependencies whenever you make a new sandbox: dependencies | ||
| which can be shared, are shared. | ||
|
|
||
| Nix-style local builds were first released as beta in cabal-install 1.24. | ||
| They currently work with all versions of GHC supported by that release: GHC 7.0 and later. | ||
|
|
||
| Some features described in this manual are not implemented. If you need | ||
| them, please give us a shout and we'll prioritize accordingly. | ||
|
|
||
| How to build packages | ||
| ===================== | ||
|
|
||
| The following sections describe how to build and work with a package | ||
| or a project consisting of multiple packages. | ||
|
|
||
| .. toctree:: | ||
| nix-local-build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.