From a5ceb5bc0b2d7fd796cb49e29d45bf568dc0df2f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Jul 2005 17:39:10 +0000 Subject: * nix-build: default to `./default.nix' if no paths are specified. So when using Nix as a build tool, you can just say `nix-build' and it will build the top-level derivation defined in `default.nix'. --- doc/manual/nix-build.xml | 4 ++++ doc/manual/package-management.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/manual') diff --git a/doc/manual/nix-build.xml b/doc/manual/nix-build.xml index 447ef126b..0462401bc 100644 --- a/doc/manual/nix-build.xml +++ b/doc/manual/nix-build.xml @@ -25,6 +25,10 @@ to multiple derivations, multiple sequentially numbered symlinks are created (result, result-2, and so on). +If no paths are specified, then +nix-build will use default.nix +in the current directory, if it exists. + nix-build is essentially a wrapper around nix-instantiate diff --git a/doc/manual/package-management.xml b/doc/manual/package-management.xml index 7620531c0..d225b41ee 100644 --- a/doc/manual/package-management.xml +++ b/doc/manual/package-management.xml @@ -176,7 +176,7 @@ set. Profiles Profiles and user environments are Nix’s mechanism for -implementing the ability to allow differens users to have different +implementing the ability to allow different users to have different configurations, and to do atomic upgrades and rollbacks. To understand how they work, it’s useful to know a bit about how Nix works. In Nix, components are stored in unique locations in the -- cgit v1.2.3