Skip to content

Commit

Permalink
[chore] fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonTorres committed Jun 28, 2024
1 parent ae1a69f commit 81a3332
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/guides/recipes/dependency-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Import the generated `npins/default.nix` as the default value for the argument t
}
```

`nix-build` will call the top-level function with the empty attribute set `{}`, or with the attributes passed via [`--arg`](https://nixos.org/manual/nix/stable/command-ref/nix-build#opt-arg) or [`--argstr`](https://nixos.org/manual/nix/stable/command-ref/nix-build#opt-argstr).
`nix-build` will call the top-level function with the empty attribute set `{}`, or with the attributes passed via [`--arg`](https://nix.dev/manual/nix/2.18/command-ref/nix-build#opt-arg) or [`--argstr`](https://nix.dev/manual/nix/2.18/command-ref/nix-build#opt-argstr).
This pattern allows [overriding remote sources](overriding-sources-npins) programmatically.

Add `npins` to the development environment for your project to have it readily available:
Expand Down
2 changes: 1 addition & 1 deletion source/tutorials/module-system/a-basic-module/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The output of `evalModules` contains information about all evaluated modules, an
:caption: default.nix
```

Here's a helper script to parse and evaluate our `default.nix` file with [`nix-instantiate --eval`](https://nixos.org/manual/nix/stable/command-ref/nix-instantiate) and print the output as JSON:
Here's a helper script to parse and evaluate our `default.nix` file with [`nix-instantiate --eval`](https://nix.dev/manual/nix/2.18/command-ref/nix-instantiate) and print the output as JSON:

```{literalinclude} eval.bash
:language: bash
Expand Down
4 changes: 2 additions & 2 deletions source/tutorials/module-system/deep-dive.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ nix-instantiate --eval eval.nix -A config.scripts.output
```

:::{dropdown} Detailed explanation
[`nix-instantiate --eval`](https://nixos.org/manual/nix/stable/command-ref/nix-instantiate) parses and evaluates the Nix file at the specified path, and prints the result.
[`nix-instantiate --eval`](https://nix.dev/manual/nix/2.18/command-ref/nix-instantiate) parses and evaluates the Nix file at the specified path, and prints the result.
`evalModules` produces an attribute set where the final configuration values appear in the `config` attribute.
Therefore we evaluate the Nix expression in `eval.nix` at the [attribute path](https://nixos.org/manual/nix/stable/language/operators#attribute-selection) `config.scripts.output`.
Therefore we evaluate the Nix expression in `eval.nix` at the [attribute path](https://nix.dev/manual/nix/2.18/language/operators#attribute-selection) `config.scripts.output`.
:::

The error message indicates that the `scripts.output` option is used but not defined: a value must be set for the option before accessing it.
Expand Down
2 changes: 1 addition & 1 deletion source/tutorials/nix-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ The only way to specify build inputs in the Nix language is explicitly with:
Nix and the Nix language refer to files by their content hash. If file contents are not known in advance, it's unavoidable to read files during expression evaluation.

:::{note}
Nix supports other types of impure expressions, such as [lookup paths](search-path) or the constant [`builtins.currentSystem`](https://nixos.org/manual/nix/stable/language/builtin-constants.html#builtins-currentSystem).
Nix supports other types of impure expressions, such as [lookup paths](search-path) or the constant [`builtins.currentSystem`](https://nix.dev/manual/nix/2.18/language/builtin-constants.html#builtins-currentSystem).
We do not cover those here in more detail, as they do not matter for how the Nix language works in principle, and because they are discouraged for the very reason of breaking reproducibility.
:::

Expand Down
2 changes: 1 addition & 1 deletion source/tutorials/packaging-existing-software.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ error: cannot evaluate a function that has an argument without a value ('stdenv'
Nix attempted to evaluate a function as a top level expression; in
this case it must have its arguments supplied either by default
values, or passed explicitly with '--arg' or '--argstr'. See
https://nixos.org/manual/nix/stable/language/constructs.html#functions.
https://nix.dev/manual/nix/2.18/language/constructs.html#functions.

at /home/nix-user/hello.nix:3:3:

Expand Down

0 comments on commit 81a3332

Please sign in to comment.