diff --git a/doc/manual/opt-common-syn.xml b/doc/manual/opt-common-syn.xml index 6628fde935..d65f4009ee 100644 --- a/doc/manual/opt-common-syn.xml +++ b/doc/manual/opt-common-syn.xml @@ -37,6 +37,11 @@ path + + + name + value + diff --git a/doc/manual/opt-common.xml b/doc/manual/opt-common.xml index b9df23dcfb..0b57517670 100644 --- a/doc/manual/opt-common.xml +++ b/doc/manual/opt-common.xml @@ -337,7 +337,7 @@ Causes Nix to print out a stack trace in case of Nix expression evaluation errors. - + @@ -351,6 +351,16 @@ + name value + + Set the Nix configuration option + name to value. + This overrides settings in the Nix configuration file (see + nix.conf5). + + + + diff --git a/doc/manual/package-management.xml b/doc/manual/package-management.xml index 8cc6aa857e..314218daf3 100644 --- a/doc/manual/package-management.xml +++ b/doc/manual/package-management.xml @@ -175,21 +175,6 @@ upgrading `coreutils-5.0' to `coreutils-5.2.1' -If you grow bored of specifying the Nix expressions using --f all the time, you can set a default -location: - - -$ nix-env -I nixpkgs-version - -After this you can just say, for instance, nix-env -u -'*'.Setting a default using --I currently clashes with using Nix channels, -since nix-channel --update calls nix-env --I to set the default to the Nix expressions it downloaded -from the channel, replacing whatever default you had -set. - diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index e08ee17845..334f4f355f 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -1,3 +1,5 @@ +#include "config.h" + #include "util.hh" #include "local-store.hh" #include "immutable.hh" @@ -51,6 +53,8 @@ struct MakeImmutable void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path) { + checkInterrupt(); + struct stat st; if (lstat(path.c_str(), &st)) throw SysError(format("getting attributes of path `%1%'") % path); @@ -65,7 +69,6 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path) /* We can hard link regular files and maybe symlinks. */ if (!S_ISREG(st.st_mode) #if CAN_LINK_SYMLINK - x && !S_ISLNK(st.st_mode) #endif ) return;