mirror of
https://github.com/NixOS/nix
synced 2025-07-02 01:01:48 +02:00
* manual: Contributing -> Development, Hacking -> Building what's currently called "hacking" are really instructions for setting up a development environment and compiling from source. we have a contribution guide in the repo (which rightly focuses on GitHub workflows), and the material in the manual is more about working on the code itself. since we'd otherwise have three headings that amount to "Building Nix", this change also moves the "classic Nix" instructions to the top. we may want to reorganise this in the future, and bring contributor-oriented information closer to the code, but for now let's stick to more accurate names to ease navigation.
19 lines
702 B
Markdown
19 lines
702 B
Markdown
# Derivation "ATerm" file format
|
|
|
|
For historical reasons, [derivations](@docroot@/glossary.md#gloss-store-derivation) are stored on-disk in [ATerm](https://homepages.cwi.nl/~daybuild/daily-books/technology/aterm-guide/aterm-guide.html) format.
|
|
|
|
Derivations are serialised in one of the following formats:
|
|
|
|
- ```
|
|
Derive(...)
|
|
```
|
|
|
|
For all stable derivations.
|
|
|
|
- ```
|
|
DrvWithVersion(<version-string>, ...)
|
|
```
|
|
|
|
The only `version-string`s that are in use today are for [experimental features](@docroot@/development/experimental-features.md):
|
|
|
|
- `"xp-dyn-drv"` for the [`dynamic-derivations`](@docroot@/development/experimental-features.md#xp-feature-dynamic-derivations) experimental feature.
|