Skip to content

Commit

Permalink
Merge pull request #237 from noamraph/patch-2
Browse files Browse the repository at this point in the history
Update 07-working-derivation.md - "input derivations" -> "input sources"
  • Loading branch information
DanielSidhion committed Apr 13, 2024
2 parents 514b3fe + 9d155d9 commit 60c02d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pills/07-working-derivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ $ nix derivation show /nix/store/i76pr1cz0za3i9r6xq518bqqvd2raspw-foo.drv
}
```

Much like the usual .drv, except that there's a list of arguments in there passed to the builder (bash) with `builder.sh`... In the nix store..? Nix automatically copies files or directories needed for the build into the store to ensure that they are not changed during the build process and that the deployment is stateless and independent of the building machine. `builder.sh` is not only in the arguments passed to the builder, it's also in the input derivations.
Much like the usual .drv, except that there's a list of arguments in there passed to the builder (bash) with `builder.sh`... In the nix store..? Nix automatically copies files or directories needed for the build into the store to ensure that they are not changed during the build process and that the deployment is stateless and independent of the building machine. `builder.sh` is not only in the arguments passed to the builder, it's also in the input sources.

Given that `builder.sh` is a plain file, it has no .drv associated with it. The store path is computed based on the filename and on the hash of its contents. Store paths are covered in detail in [a later pill](18-nix-store-paths.md).

Expand Down

0 comments on commit 60c02d0

Please sign in to comment.