9488ae7357* `show-duplication.pl', a small utility that shows the amount of package duplication present in (e.g.) a profile. It shows the number of instances of each package in a closure, along with the size in bytes of each instance as well as the "waste" (the difference between the sum of the sizes of all instances and the average size).
Eelco Dolstra
2006-09-19 13:53:35 +0000
e0afaf1857* Wow, that bug has been there since r764.
Eelco Dolstra
2006-09-14 22:48:59 +0000
5c38c863bd* Fix a huge gaping hole in nix-env w.r.t. the garbage collector. Nix-env failed to call addPermRoot(), which is necessary to safely add a new root. So if nix-env started after and finished before the garbage collector, the user environment (plus all other new stuff) it built might be garbage collected, leading to a dangling symlink chain in ~/.nix-profile...
Eelco Dolstra
2006-09-14 22:30:33 +0000
f00bc4c94c* "Too many links" error.
Eelco Dolstra
2006-09-12 09:29:28 +0000
01d169f817* Support `++'. * More follow restrictions on layout.
Eelco Dolstra
2006-09-11 13:05:15 +0000
2e210b2387* Convenience option `nix-collect-garbage -d' (--delete-old): removes old generations of *all* profiles in /nix/var/nix/profiles, then runs the garbage collector. Quick way to get rid of all old stuff. Of course, one cannot roll back to earlier points in time after this.
Eelco Dolstra
2006-09-06 14:23:04 +0000
89ac8db74f* Package the include directory.
Eelco Dolstra
2006-09-05 11:34:50 +0000
2382a729e0* Don't need extern "C".
Eelco Dolstra
2006-09-04 21:50:39 +0000
e3ce954582* Compile the lexer as C++ code. Remove all the redundant C/C++ marshalling code.
Eelco Dolstra
2006-09-04 21:36:15 +0000
75068e7d75* Use a proper namespace. * Optimise header file usage a bit. * Compile the parser as C++.
Eelco Dolstra
2006-09-04 21:06:23 +0000
aab8812732* Store the Nix libraries in ${libdir}/nix instead of ${libdir}.
Eelco Dolstra
2006-09-04 15:12:24 +0000
7974aae81c* New primop: builtins.toFile, which writes a string into the store and returns its path. This can be used to (for instance) write builders inside a Nix expression, e.g.,
Eelco Dolstra
2006-09-01 12:07:31 +0000
de90fdf908* Allow "$" in strings as long as they are not followed by "{". (Too bad flex doesn't have lexical restrictions, the current solution isn't quite right...)
Eelco Dolstra
2006-09-01 12:04:06 +0000
c9586b6c3f* Fix race condition in the test.
Eelco Dolstra
2006-09-01 12:02:39 +0000
547b119f25* Support singleton values and nested lists again in `args', but print a warning.
Eelco Dolstra
2006-08-29 15:40:49 +0000
2132d9ddeb* Fix the ~ operator.
Eelco Dolstra
2006-08-29 15:29:38 +0000
1f6616dabf* Backwards compatibility test for ~.
Eelco Dolstra
2006-08-29 15:29:19 +0000
1ec9f55741* In toString, deal with nested lists properly (i.e., flatten them).
Eelco Dolstra
2006-08-28 21:47:42 +0000
1fca76870b* Removed processBinding, instead we now apply toString to all derivation attributes to flatten them into strings. This is possible since string can nowadays be wrapped in contexts that describe the derivations/sources referenced by the evaluation of the string.
Eelco Dolstra
2006-08-28 13:31:06 +0000
bf738f0070* Honour DESTDIR so that bzip2/bunzip2 get installed in the right location when building RPMs (fixes NIX-58).
Eelco Dolstra
2006-08-25 12:14:57 +0000
3e8dccf6ab* Escape newlines in XML attributes to prevent them from being normalised away.
Eelco Dolstra
2006-08-24 15:02:39 +0000
215ec2ddc6* New primop __toXML (or builtins.toXML) to convert an expression to an XML representation stored in a string. This should be useful to pass structured information to builders.
Eelco Dolstra
2006-08-24 14:34:29 +0000
f41297fdce* Allow --arg in nix-env as well, example:
Eelco Dolstra
2006-08-23 16:33:21 +0000
9638f3f393* Pass the autoArgs to findAlongAttrPath so that "nix-instantiate foo.nix -A attr --arg name value" will work if (name, value) is needed in the evaluation leading up to "attr".
Eelco Dolstra
2006-08-23 16:20:14 +0000
4a053bfdfd* A new primop builtins', which returns an attribute set containing all the primops. This allows Nix expressions to test for new primops and take appropriate action if they're not available. For instance, rather than calling a primop foo' directly, they could say `if builtins ? foo then builtins.foo ... else ...'.
Eelco Dolstra
2006-08-23 14:39:11 +0000
4874fd2d9a* Test for `nix-instantiate --eval-only --xml'.
Eelco Dolstra
2006-08-17 11:28:29 +0000
24e234a2fa* Print attributes in sorted order, rather than the arbitrary order produced by ATermMap. Necessary for testing. * `--strict' should also work on stdin.
Eelco Dolstra
2006-08-17 08:53:08 +0000
22ba63df16* More XML output. --strict' to strictly evaluate attribute sets and so on. * Removed --print-args', it's subsumed by `--eval-only --xml'.
Eelco Dolstra
2006-08-16 21:59:53 +0000
18e4ac0fc6* `nix-instantiate --{eval|parse}-only --xml': print an XML representation instead of an ATerm. * Indent XML output.
Eelco Dolstra
2006-08-16 10:32:30 +0000
bfe19b3c37* A test for NIX-53.
Eelco Dolstra
2006-08-16 10:23:02 +0000
3e5b68068bOn cygwin, disable the check that the output is not group or world writable. File permissions on Cygwin are rather complex, and in this case this check introduced a problem with build jobs invoke from outside of Cygwin (MSYS). It seemed almost impossible to fix the permissions of the directory, so for now this safety check is disabled on Cygwin.
Martin Bravenboer
2006-08-15 21:37:48 +0000
7455fd8835* Put the value in an attribute.
Eelco Dolstra
2006-08-14 14:24:18 +0000
4250b641d8* `nix-store --gc --print-dead': print the total size of the store objects that would be freed.
Eelco Dolstra
2006-08-11 20:26:49 +0000
92f7dfa5b7* Don't assume that paths returned by the runtime root finder are valid.
Eelco Dolstra
2006-08-11 20:15:20 +0000
d19b6521fc* New configuration setting build-max-jobs' which sets the default for the -j' flag (i.e., the maximum number of jobs to execute in parallel). Useful on multi-processor machines.
Eelco Dolstra
2006-08-10 20:19:13 +0000
f1aa71a92f* Fix the help message wrt --attr.
Eelco Dolstra
2006-08-09 15:12:34 +0000
a18d02e0b0* Print a warning that the subpath operator (~) is deprecated.
Eelco Dolstra
2006-08-09 15:08:47 +0000
c0bfcbdd45rework the --target flag. If this flag is used, a URI should be given. Default values are not changed.
Armijn Hemel
2006-08-08 15:42:33 +0000
a0607be7f4* Workaround for a bug (?) in GCC 2.95.
Eelco Dolstra
2006-08-07 19:48:38 +0000
5a6b45e252* In nar.nix, path -> storePath, otherwise we get a collision between environment variable names on Cygwin (where they are case insensitive).
Eelco Dolstra
2006-08-07 18:22:57 +0000
a61129c48cadd coreutils to the default PATH for this scripts, so we know for sure we have tools like rm, mkdir, and so on
Armijn Hemel
2006-08-05 00:33:52 +0000
f1947cce93prevent doing recursive chroots, by unsetting NIX_ROOT in the scripts.
Armijn Hemel
2006-08-05 00:31:04 +0000
1854f84e83* Fix a few warnings.
Eelco Dolstra
2006-08-04 17:07:13 +0000
dcff8cdb76* Weird issue on Cygwin with the include file order.
Eelco Dolstra
2006-08-04 16:01:26 +0000
f4a502a09a* Use old-school pipe opens; the new style is Perl >= 5.8.0.
Eelco Dolstra
2006-08-04 11:51:46 +0000
981eff065b* Remove the dependency on `date', use strftime instead.
Eelco Dolstra
2006-08-04 11:45:50 +0000
339e6f0e1d* `nix-env -q --xml': show query result in XML format for easier automated processing.
Eelco Dolstra
2006-08-03 15:52:09 +0000
0e267e2625* `nix-instantiate --print-args': produce XML output so that the result can be used more easily by scripts.
Eelco Dolstra
2006-08-03 14:49:57 +0000
4750f6c5ed* Simple class for writing XML files.
Eelco Dolstra
2006-08-03 13:21:21 +0000
fcb784051furgh...for some weird reason this one-liner was not in svn. PEBKAC!
Armijn Hemel
2006-08-03 11:48:09 +0000
4fde308ec0add a flag --target, so we can override the URL in the MANIFEST file. This is only for local copies (so file:///)
Armijn Hemel
2006-08-01 13:15:55 +0000
601a8eab79* Ugh. Darwin's chmod insists that flags come before the mode specification.
Eelco Dolstra
2006-08-01 12:00:37 +0000
6ac237e242* Show some progress.
Eelco Dolstra
2006-08-01 09:43:41 +0000
4661282fde* `nix-instantiate ... --arg NAME VALUE': allow arguments to be passed to functions from the command line. * nix-build: started removing backticks.
Eelco Dolstra
2006-07-28 16:03:28 +0000
c11839d7b2* `nix-instantiate --print-args': print out the valid values for functions arguments that have a domain.
Eelco Dolstra
2006-07-28 14:01:29 +0000
ca2238cf81* Refactoring: get the selection path stuff out of getDerivations() and put it into a separate function findAlongAttrPath().
Eelco Dolstra
2006-07-26 15:05:15 +0000
2317d8f671* `nix-instantiate --print-args' prints out the arguments of a top-level function.
Eelco Dolstra
2006-07-25 21:21:50 +0000
0e6dc72a7a* Applied rbroek's patch from the branch at https://svn.cs.uu.nl:12443/repos/trace/buildfarm-control/trunk/ext/nix/, with some modifications. This allows nix-env -qa' to show the attribute path that can be used to unambiguously install a package using nix-env -i -A'. Example:
Eelco Dolstra
2006-07-25 16:40:38 +0000
5744dd5480* Support the --attr / -A flag in nix-env as well. So now we can do, e.g.,
Eelco Dolstra
2006-07-25 11:53:22 +0000
7a3a5d1608* When there is a domain check, we have to evaluate the argument. Can't be lazy!
Eelco Dolstra
2006-07-24 16:49:28 +0000
f4c5531d92* New language feature: domain checks, which check whether a function argument has a valid value, i.e., is in a certain domain. E.g.,
Eelco Dolstra
2006-07-24 16:35:34 +0000
88acffa20a* `touch' might not be in $PATH.
Eelco Dolstra
2006-07-24 16:19:08 +0000
b545c669a0* Tests for domain checks.
Eelco Dolstra
2006-07-24 15:50:29 +0000
57751fdb55* Refactoring to support domain checks.
Eelco Dolstra
2006-07-24 15:16:03 +0000