Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix-pills
base: 353336cc5ad6
Choose a base ref
...
head repository: NixOS/nix-pills
compare: c5c14aaa32a1
Choose a head ref
  • 2 commits
  • 24 files changed
  • 1 contributor

Commits on Dec 7, 2018

  1. Update documentation after Nix 2.0 switch

    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 both
    cases 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` to
      ensure that the steps and explanations provided in the first three
      chapters are still valid.
    
    * Replacing `nix-repl` references: most of the cases it was sufficient
      to replace `nix-repl` with the newly introduced command `nix repl`.
      In chapter three `nix-repl` was used to demonstrate the installation
      of a package with `nix-env`. I decided to use `nix-index` as demo
      package 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` with `nix log`).
    
    Fixes #89
    Possibly supersedes #71
    Ma27 committed Dec 7, 2018
    Copy the full SHA
    bcea6b3 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2018

  1. Merge pull request #90 from Ma27/update-docs-for-nix-2.0

    Update documentation after Nix 2.0 switch
    Ma27 committed Dec 8, 2018
    Copy the full SHA
    c5c14aa View commit details
    Browse the repository at this point in the history