From 360056e174db2171c47e065ae1e5f58ccee0236f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 26 Aug 2012 14:48:47 -0400 Subject: [PATCH] Document importing from a directory in the import documentation --- doc/manual/builtins.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/manual/builtins.xml b/doc/manual/builtins.xml index ce68c45bf3..64d4e13ad9 100644 --- a/doc/manual/builtins.xml +++ b/doc/manual/builtins.xml @@ -275,8 +275,10 @@ stdenv.mkDerivation { path Load, parse and return the Nix expression in the - file path. Evaluation aborts if the - file doesn’t exist or contains an incorrect Nix + file path. If path + is a directory, the file default.nix + in that directory is loaded. Evaluation aborts if + the file doesn’t exist or contains an incorrect Nix expression. import implements Nix’s module system: you can put any Nix expression (such as an attribute set or a function) in a separate file, and use it from Nix expressions