From e62674b6ec6c93d693247af1eb1a5930c18c7d9c Mon Sep 17 00:00:00 2001 From: clerie Date: Tue, 27 Jun 2023 19:21:50 +0200 Subject: [PATCH] Explain derivations --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c27825b..a68afe1 100644 --- a/README.md +++ b/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`.