add Java example on manual dependency declaration

This commit is contained in:
Valentin Gagarin 2022-07-13 11:53:59 +01:00 committed by Valentin Gagarin
parent 29c062537d
commit 0228eb8ae7

View file

@ -83,6 +83,8 @@ Doing it at build time and persisting references in the store object avoids repe
::: {.note}
In practice, it is sometimes still necessary to declare certain dependencies explicitly, if they are to be preserved in the build result's closure.
This depends on the specifics of the software to build and run.
For example, Java programs are compressed after compilation, which obfuscates any store paths they may refer to and prevents Nix from automatically detecting them.
:::
## Input Addressing {#input-addressing}