- Oct 17, 2012
-
-
Eelco Dolstra authored
This prevents unnecessary and slow rebuilds of NARs that already exist in the binary cache.
-
- Oct 12, 2012
-
-
Eelco Dolstra authored
Reported by Shea.
-
- Oct 11, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Oct 10, 2012
-
-
Mats Erik Andersson authored
-
- Oct 04, 2012
-
-
Eelco Dolstra authored
Ignoring assertion failures makes some sense for nix-env -qa, but not for nix-instantiate/nix-build or hydra-eval-jobs.
-
Eelco Dolstra authored
This is useful for hydra-eval-jobs.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Oct 03, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
AFAIK nobody uses this, setuid binaries are evil, and there is no good reason why people can't just run the daemon.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
I.e. do what git does. I'm too lazy to keep the builtin help text up to date :-) Also add ‘--help’ to various commands that lacked it (e.g. nix-collect-garbage).
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
This allows repairing corrupted derivations and other source files.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
If we find a corrupted path in the output closure, we rebuild the derivation that produced that particular path.
-
- Oct 02, 2012
-
-
Eelco Dolstra authored
With this flag, if any valid derivation output is missing or corrupt, it will be recreated by using a substitute if available, or by rebuilding the derivation. The latter may use hash rewriting if chroots are not available.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Also, return a non-zero exit code if errors remain after verifying/repairing.
-
Eelco Dolstra authored
This operation allows fixing corrupted or accidentally deleted store paths by redownloading them using substituters, if available. Since the corrupted path cannot be replaced atomically, there is a very small time window (one system call) during which neither the old (corrupted) nor the new (repaired) contents are available. So repairing should be used with some care on critical packages like Glibc.
-
- Sep 29, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Sep 27, 2012
-
-
Eelco Dolstra authored
In Nixpkgs, the attribute in all-packages.nix corresponding to a package is usually equal to the package name. However, this doesn't work if the package contains a dash, which is fairly common. The convention is to replace the dash with an underscore (e.g. "dbus-lib" becomes "dbus_glib"), but that's annoying. So now dashes are valid in variable / attribute names, allowing you to write: dbus-glib = callPackage ../development/libraries/dbus-glib { }; and buildInputs = [ dbus-glib ]; Since we don't have a negation or subtraction operation in Nix, this is unambiguous.
-
- Sep 25, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Fixes #44.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Reported by "gio" on IRC.
-
- Sep 21, 2012
-
-
Eelco Dolstra authored
-
- Sep 19, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Using the immutable bit is problematic, especially in conjunction with store optimisation. For instance, if the garbage collector deletes a file, it has to clear its immutable bit, but if the file has additional hard links, we can't set the bit afterwards because we don't know the remaining paths. So now that we support having the entire Nix store as a read-only mount, we may as well drop the immutable bit. Unfortunately, we have to keep the code to clear the immutable bit for backwards compatibility.
-
Eelco Dolstra authored
It turns out that the immutable bit doesn't work all that well. A better way is to make the entire Nix store a read-only bind mount, i.e. by doing $ mount --bind /nix/store /nix/store $ mount -o remount,ro,bind /nix/store (This would typically done in an early boot script, before anything from /nix/store is used.) Since Nix needs to be able to write to the Nix store, it now detects if /nix/store is a read-only bind mount and then makes it writable in a private mount namespace.
-
Eelco Dolstra authored
-