+19
-2
doc/builders/trivial-builders.chapter.md
+19
-2
doc/builders/trivial-builders.chapter.md
···-This takes three arguments, `name`, `env`, and `buildCommand`. `name` is just the name that Nix will append to the store path in the same way that `stdenv.mkDerivation` uses its `name` attribute. `env` is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped `stdenv.mkDerivation`. `buildCommand` specifies the commands that will be run to create this derivation. Note that you will need to create `$out` for Nix to register the command as successful.+`runCommand name drvAttrs buildCommand` returns a derivation that is built by running the specified shell commands.+: The name that Nix will append to the store path in the same way that `stdenv.mkDerivation` uses its `name` attribute.+You have to create a file or directory `$out` for Nix to be able to run the builder successfully.···