Update documentation after Nix 2.0 switch #90
Merged
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.
In #89 it has been reported that the third step can't be done as
nix-repl
doesn't evaluate anymore on 18.09 and unstable as in bothcases an evaluation error will be thrown.
First of all this may confuse new users who want to learn Nix, but don't
know the ecosystem sufficiently to understand why the install failed.
As recent NixOS versions (unstable and 18.09) use Nix 2.0 by default and
unstable doesn't evaluate with Nix 1.x anymore it should be a safe thing
to do now.
This patch covers two aspects:
Using Nix 2.0: I replayed the installation steps with
nix-env
toensure that the steps and explanations provided in the first three
chapters are still valid.
Replacing
nix-repl
references: most of the cases it was sufficientto replace
nix-repl
with the newly introduced commandnix repl
.In chapter three
nix-repl
was used to demonstrate the installationof a package with
nix-env
. I decided to usenix-index
as demopackage as I figured this tool to be extremely helpful to locate
packages by output files.
The explanation that Nix is not only a tool for package/derivation
management, but a functional language as well was moved to chapter
four where the basics of the language were actually covered.
This change is just a first step towards an updated series, in the
future we may want to use even more Nix 2.0 features (such as
nix-build
vs.nix build
withnix log
).Fixes #89
Possibly supersedes #71