Skip to content

Commit

Permalink
Update towards-reproducibility-pinning-nixpkgs.md
Browse files Browse the repository at this point in the history
I expected the `<nixpkgs>` link to point to a resource that explains what that construct is and not directly to Nixpkgs. If I would be totally new to Nix, that would be even more confusing.

Couldn't test whether the links in the new note section resolve properly as MyST wouldn't compile on my Mac M1. If you you like this change, I can spend more time to test them properly.
  • Loading branch information
toraritte authored and fricklerhandwerk committed Aug 14, 2024
1 parent 174bdff commit 695b536
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

# Towards reproducibility: pinning Nixpkgs

In various Nix examples, you'll often see references to [\<nixpkgs>](https://github.com/NixOS/nixpkgs), as follows.
In various Nix examples, you'll often see the following:

```nix
{ pkgs ? import <nixpkgs> {} }:
...
```

:::{note}
`<nixpkgs>` points to the file system path of some revision of {term}`Nixpkgs`. See [lookup paths](../nix-language.md#lookup-paths) in the next chapter, [](../nix-language.md).
:::

This is a **convenient** way to quickly demonstrate a Nix expression and get it working by importing Nix packages.

However, <ref-search-path>**the resulting Nix expression is not fully reproducible**.
Expand Down

0 comments on commit 695b536

Please sign in to comment.