Eelco Dolstra
3e5e0faf9c
* Okay, putting a lock on the temporary directory used by importPath()
...
doesn't work because the garbage collector doesn't actually look at
locks. So r22253 was stupid. Use addTempRoot() instead. Also,
locking the temporary directory in exportPath() was silly because it
isn't even in the store.
2010-06-21 11:08:09 +00:00
Eelco Dolstra
bf87cc44b4
* Sync with the trunk.
2010-06-21 07:55:38 +00:00
Eelco Dolstra
b57189174f
* In importPath() and exportPath(), lock the temporary directory to
...
prevent it from being deleted by the garbage collector.
2010-06-14 08:34:48 +00:00
Eelco Dolstra
f16fe2af8d
* builtins.toXML: propagate the string context. This is a regression
...
from the old ATerm-based evaluator.
2010-06-10 10:29:50 +00:00
Eelco Dolstra
d1f6c0cbe3
* Replacing ValidPath rows doesn't work because it causes a constraint
...
violation of the Refs table. So don't do that.
2010-06-08 13:38:28 +00:00
Eelco Dolstra
07ca66cf24
* Applied a patch from David Brown to prevent `nix-store --optimise'
...
from failing on rename() on BtrFS.
2010-06-04 13:56:11 +00:00
Eelco Dolstra
1ab67cf437
2010-06-02 09:43:04 +00:00
Eelco Dolstra
89865da76d
* Turn build errors during evaluation into EvalErrors.
2010-06-01 11:19:32 +00:00
Eelco Dolstra
a443c7573b
* Hack to allow derivations to disable chroot builds by setting the
...
attribute "__noChroot = true" (requested by Rob).
2010-06-01 10:01:14 +00:00
Ludovic Courtès
8bcdd36f10
Add XML output to `nix-store'.
...
* src/nix-store/Makefile.am (nix_store_SOURCES): Add `xmlgraph.cc' and
`xmlgraph.hh'.
* src/nix-store/help.txt (Operations): Document `--xml'.
* src/nix-store/nix-store.cc (opQuery): Handle `--xml'.
* src/nix-store/xmlgraph.cc, src/nix-store/xmlgraph.hh: New files.
2010-05-31 16:36:24 +00:00
Ludovic Courtès
da52f8bea0
Comment out dead code in `nix-store'.
...
* src/nix-store/dotgraph.cc (pathLabel): Move within #if 0 section.
2010-05-31 16:36:20 +00:00
Eelco Dolstra
7343e6c8ae
* Remove an accidentally committed debug statement.
2010-05-30 20:29:56 +00:00
Eelco Dolstra
b92a2e5cc2
* Sync with the trunk.
2010-05-20 12:36:03 +00:00
Eelco Dolstra
93cd5a4a13
* The << operator on values should be const.
2010-05-18 10:36:37 +00:00
Eelco Dolstra
32539e41d5
* Sync with trunk.
2010-05-16 17:16:00 +00:00
Eelco Dolstra
b2235d81d1
* Restore the __overrides feature that was lost somewhere in the
...
fast-eval branch.
2010-05-15 08:10:12 +00:00
Eelco Dolstra
aa45027818
* Sync with the trunk.
2010-05-12 22:13:09 +00:00
Eelco Dolstra
bd25ac2260
* Print attributes in sorted order.
2010-05-12 12:15:49 +00:00
Eelco Dolstra
81a4b4e49b
* Implemented tryEval, the last missing primop in the fast-eval
...
branch. Also added a test for tryEval.
2010-05-12 11:23:44 +00:00
Eelco Dolstra
1a8eb6e3ec
2010-05-07 15:26:33 +00:00
Eelco Dolstra
83dfa89870
* Sync with the trunk.
2010-05-07 14:46:47 +00:00
Eelco Dolstra
01e58adce0
* Store position info for inherited attributes.
2010-05-07 12:43:57 +00:00
Eelco Dolstra
83d7b89660
* Updated addErrorContext.
2010-05-07 12:33:14 +00:00
Eelco Dolstra
e2d5e40f4f
* Keep track of the source positions of attributes.
2010-05-07 12:11:05 +00:00
Eelco Dolstra
84ce7ac76f
* Store attribute positions in the AST and report duplicate attribute
...
errors with position info.
* For all positions, use the position of the first character of the
first token, rather than the last character of the first token plus
one.
2010-05-06 16:46:48 +00:00
Eelco Dolstra
a0e3b84fac
* Revert r15436. This was a workaround for a bug in btrfs which seems
...
to have been fixed now.
2010-05-04 12:42:58 +00:00
Eelco Dolstra
f92c9a0ac5
* Allow unprivileged users to do `nix-store --clear-failed-paths' and
...
`nix-store --query-failed-paths'.
2010-05-04 10:45:10 +00:00
Eelco Dolstra
c82782f9a5
2010-04-27 09:05:11 +00:00
Eelco Dolstra
ef337f7089
2010-04-26 12:58:12 +00:00
Eelco Dolstra
6199f9b93e
* Added a command `nix-store --clear-failed-paths <PATHS>' to clear
...
the "failed" status of the given store paths. The special value `*'
clears all failed paths.
2010-04-26 12:56:42 +00:00
Eelco Dolstra
2398af13c5
* Add an command `nix-store --query-failed-paths' to list the cached
...
failed paths (when using the `build-cache-failure' option).
2010-04-26 12:43:42 +00:00
Eelco Dolstra
2be6118f4c
* Don't need the test program anymore.
2010-04-23 09:09:32 +00:00
Eelco Dolstra
0bc468f195
* Simplify the implementation of `with'. This gives a 7% speedup in
...
evaluating the NixOS system configuration.
2010-04-22 15:08:09 +00:00
Eelco Dolstra
ebade9ff8b
* Check for duplicate attribute names / function arguments. `make
...
check' now succeeds :-)
* An attribute set such as `{ foo = { enable = true; };
foo.port = 23; }' now parses. It was previously rejected, but I'm
too lazy to implement the check. (The only reason to reject it is
that the reverse, `{ foo.port = 23; foo = { enable = true; }; }', is
rejected, which is kind of ugly.)
2010-04-22 11:02:24 +00:00
Eelco Dolstra
2d7636529f
* String equality tests should take the context into account. All the
...
evaluation test cases now succeed.
2010-04-22 09:54:11 +00:00
Eelco Dolstra
6bbfe95e30
* Don't use an ostringstream in unparseDerivation(), because it's
...
slow. A `nix-env -qa --drv-path \*' on Nixpkgs was spending 40% of
its time in unparseDerivation() because of this (now 11%).
2010-04-21 19:25:50 +00:00
Eelco Dolstra
6f0f16497a
* Fix the interpretation of ''\<character> in indented strings.
2010-04-21 16:18:27 +00:00
Eelco Dolstra
0777448ca6
* Fixed builtins.genericClosure.
2010-04-21 15:57:11 +00:00
Eelco Dolstra
fe2d869e04
* Store user environment manifests as a Nix expression in
...
$out/manifest.nix rather than as an ATerm.
(Hm, I thought I committed this two days ago...)
2010-04-21 15:08:58 +00:00
Eelco Dolstra
d66ea83a76
* Sync with the trunk.
2010-04-20 09:20:29 +00:00
Eelco Dolstra
f3b8833a48
* Drop the dependency on the ATerm library.
2010-04-19 14:51:58 +00:00
Eelco Dolstra
efc7a579e8
* Don't use the ATerm library for parsing/printing .drv files.
2010-04-19 13:46:58 +00:00
Eelco Dolstra
55b5ddd3ca
* Added parsing of manifests in ATerm format.
2010-04-19 12:10:04 +00:00
Eelco Dolstra
b7ff69eb7c
* Refactoring: move the user environment stuff into its own module.
2010-04-19 10:47:56 +00:00
Eelco Dolstra
5c31995bb8
* Updated some more primops.
2010-04-16 15:13:47 +00:00
Eelco Dolstra
8bb0210fea
* _combineChannels shouldn't be an integer.
2010-04-16 14:07:52 +00:00
Eelco Dolstra
8ca4a001cb
* Improve sharing a bit.
2010-04-16 14:03:26 +00:00
Eelco Dolstra
497e4ad126
* Remove some redundant tests.
2010-04-16 13:51:01 +00:00
Eelco Dolstra
02c1dac909
* In an nested with' where the inner with is a variable (
with ...;
...
with someVar; ...'), the contents of the variable would be
clobbered. (The attributes in the outer `with' were added to the
variable.)
2010-04-16 13:44:02 +00:00
Eelco Dolstra
04c4bd3624
* Store lists as lists of pointers to values rather than as lists of
...
values. This improves sharing and gives another speed up.
Evaluation of the NixOS system attribute is now almost 7 times
faster than the old evaluator.
2010-04-15 00:37:36 +00:00