about summary refs log tree commit diff
path: root/src/libutil
AgeCommit message (Collapse)AuthorFilesLines
2006-09-04 * Store the Nix libraries in ${libdir}/nix instead of ${libdir}.Eelco Dolstra1-1/+1
2006-08-31 * Doh! Doh! Doh!Eelco Dolstra1-1/+1
2006-08-31 * Better error checking.Eelco Dolstra1-11/+6
2006-08-29 * Fix the ~ operator.Eelco Dolstra2-0/+11
2006-08-26 * Refactoring.Eelco Dolstra2-4/+10
2006-08-24 * Escape newlines in XML attributes to prevent them from beingEelco Dolstra1-0/+3
normalised away.
2006-08-16 * `nix-instantiate --{eval|parse}-only --xml': print an XMLEelco Dolstra2-3/+19
representation instead of an ATerm. * Indent XML output.
2006-08-04 * Weird issue on Cygwin with the include file order.Eelco Dolstra1-4/+4
2006-08-03 * `nix-env -q --xml': show query result in XML format for easierEelco Dolstra2-2/+2
automated processing.
2006-08-03 * `nix-instantiate --print-args': produce XML output so that theEelco Dolstra3-57/+69
result can be used more easily by scripts.
2006-08-03 * Simple class for writing XML files.Eelco Dolstra1-0/+161
2006-07-20 * Call find-runtime-roots.pl from the garbage collector to preventEelco Dolstra2-0/+98
running applications etc. from being garbage collected.
2006-07-06 * Allow the canonical system name to be specified at runtime in theEelco Dolstra2-7/+0
Nix config file.
2006-06-19 * Write messages to stderr in a slightly more atomic way. Useful whenEelco Dolstra1-1/+2
there are several parallel processes.
2006-06-14 * Fix for a problem with BSD's group ownership semantics when the user Eelco Dolstra1-1/+13
is not in the "wheel" group.
2006-05-24 * Some Cygwin fixes.Eelco Dolstra1-6/+6
2006-05-12 * Support for srcdir != builddir (NIX-41).Eelco Dolstra1-1/+1
2006-05-11 * 64-bit compatibility fixes (for problems revealed by building on an AthlonEelco Dolstra3-11/+12
64 running 64-bit SUSE). A patched ATerm library is required to run Nix succesfully.
2006-05-08 * GCC 2.95 compatibility.Eelco Dolstra1-0/+2
2006-05-08 * Allow function argument default values to refer to other argumentsEelco Dolstra2-3/+8
of the function. Implements NIX-45.
2006-05-08 * Show evaluation stats when NIX_SHOW_STATS=1.Eelco Dolstra2-14/+26
2006-05-04 * Use the new ATermMap.Eelco Dolstra3-1/+428
2006-03-09 * Ugh, printHash() was very inefficient because it usedEelco Dolstra1-5/+7
ostringstreams. Around 11% of execution time was spent here (now it's 0.5%).
2006-03-08 * Some refactoring of the exception handling code so that we can catchEelco Dolstra2-5/+16
Nix expression assertion failures.
2006-03-01 * Ouch, parseHash32 was completely broken. All digits >= 4 wereEelco Dolstra1-1/+1
parsed as 4. For a moment I worried that printHash32 was broken, and that would have been really, *really* bad ;-)
2006-02-13 * Optional switch "--with-openssl=<PATH>" to use OpenSSL'sEelco Dolstra6-40/+48
implementations of MD5, SHA-1 and SHA-256. The main benefit is that we get assembler-optimised implementations of MD5 and SHA-1 (though not SHA-256 (at least on x86), unfortunately). OpenSSL's SHA-1 implementation on Intel is twice as fast as ours.
2006-02-13 * Use a union.Eelco Dolstra1-2/+1
2006-02-01 * bsdiff updated to 4.3. This makes Nix depend on libbz2.Eelco Dolstra1-1/+1
2006-01-09 * dirOf: return "/", not "", for paths in the root directory. Fixes NIX-26.Eelco Dolstra1-2/+2
2006-01-08 * Resolve all symlink components in the location of the temporaryEelco Dolstra2-4/+25
build directory (TMPDIR, i.e., /tmp). Fixes NIX-26.
2005-12-15 * `nix-store --gc' prints out the number of bytes freed on stdoutEelco Dolstra2-4/+17
(even when it is interrupted by a signal).
2005-11-16 * Did something useful while waiting at IAD: reference scanning is nowEelco Dolstra2-1/+7
much faster.
2005-09-22 * Parse multi-valued options.Eelco Dolstra2-0/+19
2005-07-22 * Build dynamic libraries.Eelco Dolstra1-2/+2
2005-05-04 * FreeBSD 4.x doesn't have stdint.h, use inttypes.h instead (which isEelco Dolstra3-3/+3
also part of ISO C).
2005-05-04 * The eof() state isn't guaranteed to be set non-lazily. GCC 2.95Eelco Dolstra1-1/+1
compatibility fix.
2005-03-24 * Create missing log and temproots directories automatically (reportedEelco Dolstra2-0/+13
by Rob).
2005-03-23 * Fix endianness bug.Eelco Dolstra1-18/+18
2005-03-03 * Don't use fork() in copyPath(), but a string buffer.Eelco Dolstra1-0/+3
2005-02-11 * Refactoring to support different installation sources in nix-env.Eelco Dolstra1-0/+8
* Set the references for the user environment manifest properly. * Don't copy the manifest (this was accidental). * Don't store derivation paths in the manifest (maybe this should be made optional). This cleans up the semantics of nix-env, which were weird. * Hash on the output paths of activated components, not on derivation paths. This is because we don't know the derivation path of already installed components anymore, and it allows the installation of components by store path (skipping Nix expressions entirely). * Query options `--out-path' and `--drv-path' to show the output and derivation paths of components, respectively (the latter replaces the `--expr' query).
2005-02-09 * Automatically upgrade <= 0.7 Nix stores to the new schema (so thatEelco Dolstra2-0/+12
existing user environments continue to work). * `nix-store --verify': detect incomplete closures.
2005-02-01 * A GC setting `gc-keep-outputs' to specify whether output paths ofEelco Dolstra2-0/+25
derivations should be kept.
2005-02-01 * nix-build: use an indirection scheme to make it easier for users toEelco Dolstra2-0/+11
get rid of GC roots. Nix-build places a symlink `result' in the current directory. Previously, removing that symlink would not remove the store path being linked to as a GC root. Now, the GC root created by nix-build is actually a symlink in `/nix/var/nix/gcroots/auto' to `result'. So if that symlink is removed the GC root automatically becomes invalid (since it can no longer be resolved). The root itself is not automatically removed - the garbage collector should delete dangling roots.
2005-01-31 * Topologically sort paths under the references relation to ensureEelco Dolstra1-1/+0
that they are deleted in an order that maintains the closure invariant. * Presence of a path in a temporary roots file does not imply that all paths in its closure are also present, so add the closure.
2005-01-31 * Start of concurrent garbage collection. Processes write temporaryEelco Dolstra2-4/+12
roots to a per-process temporary file in /nix/var/nix/temproots while holding a write lock on that file. The garbage collector acquires read locks on all those files, thus blocking further progress in other Nix processes, and reads the sets of temporary roots.
2005-01-27 * Make lock removal safe by signalling to blocked processes that theEelco Dolstra2-0/+10
lock they are waiting on has become stale (we do this by writing a meaningless token to the unlinked file).
2005-01-20 * Another change to low-level derivations. The last one this year, IEelco Dolstra1-0/+2
promise :-) This allows derivations to specify on *what* output paths of input derivations they are dependent. This helps to prevent unnecessary downloads. For instance, a build might be dependent on the `devel' and `lib' outputs of some library component, but not the `docs' output.
2005-01-17 * Removed the `id' attribute hack.Eelco Dolstra2-6/+67
* Formalise the notion of fixed-output derivations, i.e., derivations for which a cryptographic hash of the output is known in advance. Changes to such derivations should not propagate upwards through the dependency graph. Previously this was done by specifying the hash component of the output path through the `id' attribute, but this is insecure since you can lie about it (i.e., you can specify any hash and then produce a completely different output). Now the responsibility for checking the output is moved from the builder to Nix itself. A fixed-output derivation can be created by specifying the `outputHash' and `outputHashAlgo' attributes, the latter taking values `md5', `sha1', and `sha256', and the former specifying the actual hash in hexadecimal or in base-32 (auto-detected by looking at the length of the attribute value). MD5 is included for compatibility but should be considered deprecated. * Removed the `drvPath' pseudo-attribute in derivation results. It's no longer necessary. * Cleaned up the support for multiple output paths in derivation store expressions. Each output now has a unique identifier (e.g., `out', `devel', `docs'). Previously there was no way to tell output paths apart at the store expression level. * `nix-hash' now has a flag `--base32' to specify that the hash should be printed in base-32 notation. * `fetchurl' accepts parameters `sha256' and `sha1' in addition to `md5'. * `nix-prefetch-url' now prints out a SHA-1 hash in base-32. (TODO: a flag to specify the hash.)
2005-01-14 * Shorten SHA-256 hashes used in store path name generation to 160Eelco Dolstra2-11/+85
bits, then encode them in a radix-32 representation (using digits and letters except e, o, u, and t). This produces store paths like /nix/store/4i0zb0z7f88mwghjirkz702a71dcfivn-aterm-2.3.1. The nice thing about this is that the hash part of the file name is still 32 characters, as before with MD5. (Of course, shortening SHA-256 to 160 bits makes it no better than SHA-160 in theory, but hopefully it's a bit more resistant to attacks; it's certainly a lot slower.)
2005-01-14 * Start move towards SHA-256 hashes instead of MD5.Eelco Dolstra2-1/+2
* Start cleaning up unique store path generation (they weren't always unique; in particular the suffix ("-aterm-2.2", "-builder.sh") was not part of the hash, therefore changes to the suffix would cause multiple store objects with the same hash).