Explain derivations
This commit is contained in:
parent
66092a4f08
commit
e62674b6ec
10
README.md
10
README.md
@ -2,6 +2,16 @@
|
||||
|
||||
My attempt to bootstrap a build environment in nix.
|
||||
|
||||
|
||||
```
|
||||
nix build -f busybox.nix busybox
|
||||
```
|
||||
|
||||
All the busybox commands get exposed in a derivation called `utils`.
|
||||
You can build it:
|
||||
|
||||
```
|
||||
nix build -f busybox.nix utils
|
||||
```
|
||||
|
||||
The output of the derivation can be used as part of a `PATH` in a shell like it is done in `shellDerivation`.
|
||||
|
Loading…
Reference in New Issue
Block a user