nixos-from-scratch/README.md

18 lines
356 B
Markdown
Raw Permalink Normal View History

2023-06-27 18:13:15 +02:00
# NixOS from scratch
My attempt to bootstrap a build environment in nix.
2023-06-27 19:21:50 +02:00
2023-06-27 18:13:15 +02:00
```
nix build -f busybox.nix busybox
```
2023-06-27 19:21:50 +02:00
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`.