diff --git a/doc/functions/ocitools.xml b/doc/functions/ocitools.xml
index 4500c41a34ae..163bee2382e6 100644
--- a/doc/functions/ocitools.xml
+++ b/doc/functions/ocitools.xml
@@ -31,10 +31,10 @@
Build Container
buildContainer {
- cmd = with pkgs; writeScript "run.sh" ''
+ args = [ (with pkgs; writeScript "run.sh" ''
#!${bash}/bin/bash
${coreutils}/bin/exec ${bash}/bin/bash
- '';
+ '').outPath ];
mounts = {
"/data" = {
@@ -51,7 +51,7 @@ buildContainer {
- cmd specifies the program to run inside the container.
+ args specifies a set of arguments to run inside the container.
This is the only required argument for buildContainer.
All referenced packages inside the derivation will be made available
inside the container