Skip to content

Commit

Permalink
Update towards-reproducibility-pinning-nixpkgs.md (#1029)
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.
  • Loading branch information
toraritte authored Aug 14, 2024
1 parent 174bdff commit b159d08
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

# 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`.
Find more information on [lookup paths](lookup-path-tutorial) in [](reading-nix-language).
:::

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 b159d08

Please sign in to comment.