Skip to content

Commit

Permalink
add missing word
Browse files Browse the repository at this point in the history
  • Loading branch information
fricklerhandwerk authored Aug 24, 2023
1 parent 92e4e1e commit 458acd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/recipes/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ If the Nix file containing this expression is in `/home/myuser/myproject`, then
The problem is that now your build is no longer reproducible, as it depends on the parent directory name.
That cannot declared in the source code, and results in an impurity.

If someone builds the project in a directory with a different name, they will get a different for `src` and everything that depends on it.
If someone builds the project in a directory with a different name, they will get a different store path hash for `src` and everything that depends on it.

:::{tip}
Use [`builtins.path`](https://nixos.org/manual/nix/stable/language/builtins.html#builtins-path) with the `name` attribute set to something fixed.
Expand Down

0 comments on commit 458acd7

Please sign in to comment.