Commit graph

  • 750be19ae8 * Remove "auto" and "guess" as synonyms for 0 in the handling of build-cores and --cores. They're superfluous and just complicate the parsing. Eelco Dolstra 2010-08-04 12:23:59 +0000
  • 7f893b7a43 * Allow derivations to hint that they should not be built remotely using the build hook mechanism, by setting the derivation attribute "preferLocalBuild" to true. This has a few use cases: Eelco Dolstra 2010-08-04 12:13:58 +0000
  • 315d8fbd75 * Set the default system filter to "*". This ensures that (for instance) "nix-env -i wine" works on x86_64-linux, even though Wine is built on i686-linux. In the event that there are multiple matching derivations, prefer those built for the current system. Eelco Dolstra 2010-08-04 09:32:42 +0000
  • 6d6200f37a * Optimisation in the // operator: if one of the sets is empty, return the other set. Eelco Dolstra 2010-08-02 16:31:05 +0000
  • 7af6a2fd71 * intersectAttrs: optimise for the case where the second set is larger than the first set. (That's usually the case with callPackage.) Eelco Dolstra 2010-08-02 11:54:44 +0000
  • 532d766c27 * Don't barf if the source NAR for a patch has disappeared. Eelco Dolstra 2010-07-21 11:30:23 +0000
  • 7e043d28a6 src/bsdiff-4.3/Makefile.am: include the 'compat-include' directory in distribution tarballs Peter Simons 2010-07-15 14:35:20 +0000
  • 60b632b173 tests/build-hook.hook.sh: prefer more portable ... syntax over $(...) for running sub-shells Peter Simons 2010-06-25 14:05:37 +0000
  • a0d29040f7 Revert "configure.ac: make flex and bison required programs" Peter Simons 2010-06-24 22:22:24 +0000
  • af09fe12dd Fix build of bsdiff-4.3 on machines that don't have <err.h>, such as Solaris. Peter Simons 2010-06-24 17:51:31 +0000
  • d63375d529 configure.ac: Incredibly enough, tr(1) on Solaris doesn't understand A-Z syntax for ranges. Peter Simons 2010-06-24 17:51:24 +0000
  • 4c21c016c5 configure.ac: make flex and bison required programs Peter Simons 2010-06-24 17:51:19 +0000
  • bcec46057c src/libutil/util.cc: include <limit.h> to ensure that PATH_MAX is defined Peter Simons 2010-06-24 17:51:13 +0000
  • a17071fef1 Include <cstring> to ensure that strcpy(), strlen(), and memset() are declared. Peter Simons 2010-06-24 17:51:04 +0000
  • 560ab22f7d * Ignore packages that don't have a version. * Work on a manifest instead of a channel directory. Eelco Dolstra 2010-06-23 21:11:33 +0000
  • 8b7f8b56f1 Added support for passing an (impure) NIX_BUILD_CORES variable to build expressions. Peter Simons 2010-06-23 14:34:08 +0000
  • 87ef5907e9 * Sync. Eelco Dolstra 2010-06-22 14:42:34 +0000
  • 819548d92f * Pass `--fallback' to the remote build to ignore failing substituters. Eelco Dolstra 2010-06-22 14:41:22 +0000
  • 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. Eelco Dolstra 2010-06-21 11:08:09 +0000
  • bf87cc44b4 * Sync with the trunk. Eelco Dolstra 2010-06-21 07:55:38 +0000
  • b57189174f * In importPath() and exportPath(), lock the temporary directory to prevent it from being deleted by the garbage collector. Eelco Dolstra 2010-06-14 08:34:48 +0000
  • f16fe2af8d * builtins.toXML: propagate the string context. This is a regression from the old ATerm-based evaluator. Eelco Dolstra 2010-06-10 10:29:50 +0000
  • d1f6c0cbe3 * Replacing ValidPath rows doesn't work because it causes a constraint violation of the Refs table. So don't do that. Eelco Dolstra 2010-06-08 13:38:28 +0000
  • 07ca66cf24 * Applied a patch from David Brown to prevent `nix-store --optimise' from failing on rename() on BtrFS. Eelco Dolstra 2010-06-04 13:56:11 +0000
  • 1ab67cf437 Eelco Dolstra 2010-06-02 09:43:04 +0000
  • 89865da76d * Turn build errors during evaluation into EvalErrors. Eelco Dolstra 2010-06-01 11:19:32 +0000
  • a443c7573b * Hack to allow derivations to disable chroot builds by setting the attribute "__noChroot = true" (requested by Rob). Eelco Dolstra 2010-06-01 10:01:14 +0000
  • 8bcdd36f10 Add XML output to `nix-store'. Ludovic Courtès 2010-05-31 16:36:24 +0000
  • da52f8bea0 Comment out dead code in `nix-store'. Ludovic Courtès 2010-05-31 16:36:20 +0000
  • 7343e6c8ae * Remove an accidentally committed debug statement. Eelco Dolstra 2010-05-30 20:29:56 +0000
  • b92a2e5cc2 * Sync with the trunk. Eelco Dolstra 2010-05-20 12:36:03 +0000
  • 93cd5a4a13 * The << operator on values should be const. Eelco Dolstra 2010-05-18 10:36:37 +0000
  • 32539e41d5 * Sync with trunk. Eelco Dolstra 2010-05-16 17:16:00 +0000
  • b2235d81d1 * Restore the __overrides feature that was lost somewhere in the fast-eval branch. Eelco Dolstra 2010-05-15 08:10:12 +0000
  • aa45027818 * Sync with the trunk. Eelco Dolstra 2010-05-12 22:13:09 +0000
  • 8032f26ca0 * Merged the `fast-eval' branch. Eelco Dolstra 2010-05-12 13:59:36 +0000
  • bd25ac2260 * Print attributes in sorted order. Eelco Dolstra 2010-05-12 12:15:49 +0000
  • 81a4b4e49b * Implemented tryEval, the last missing primop in the fast-eval branch. Also added a test for tryEval. Eelco Dolstra 2010-05-12 11:23:44 +0000
  • 1a8eb6e3ec Eelco Dolstra 2010-05-07 15:26:33 +0000
  • 83dfa89870 * Sync with the trunk. Eelco Dolstra 2010-05-07 14:46:47 +0000
  • 01e58adce0 * Store position info for inherited attributes. Eelco Dolstra 2010-05-07 12:43:57 +0000
  • 83d7b89660 * Updated addErrorContext. Eelco Dolstra 2010-05-07 12:33:14 +0000
  • e2d5e40f4f * Keep track of the source positions of attributes. Eelco Dolstra 2010-05-07 12:11:05 +0000
  • 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. Eelco Dolstra 2010-05-06 16:46:48 +0000
  • 4750065ada buildenv: Special-case Python's site.py' and site.pyc'. Ludovic Courtès 2010-05-05 20:46:41 +0000
  • a0e3b84fac * Revert r15436. This was a workaround for a bug in btrfs which seems to have been fixed now. Eelco Dolstra 2010-05-04 12:42:58 +0000
  • f92c9a0ac5 * Allow unprivileged users to do nix-store --clear-failed-paths' and nix-store --query-failed-paths'. Eelco Dolstra 2010-05-04 10:45:10 +0000
  • 4bab25a28d buildenv: Special-case Python's `easy-install.pth' files. Ludovic Courtès 2010-05-03 13:13:38 +0000
  • 7fa338f4ba * Don't use smart quotes where normal ASCII quotes are intended. Actually, don't use quotes at all. (Reported by Howard B. Golden.) Eelco Dolstra 2010-05-02 21:27:50 +0000
  • c82782f9a5 Eelco Dolstra 2010-04-27 09:05:11 +0000
  • c778ed1768 * Fix the copy-from-other-stores substituter. Eelco Dolstra 2010-04-26 13:39:55 +0000
  • ef337f7089 Eelco Dolstra 2010-04-26 12:58:12 +0000
  • 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. Eelco Dolstra 2010-04-26 12:56:42 +0000
  • 2398af13c5 * Add an command nix-store --query-failed-paths' to list the cached failed paths (when using the build-cache-failure' option). Eelco Dolstra 2010-04-26 12:43:42 +0000
  • d77331d32f Fixing a typo in the nix-store manual, that could confuse a bit too much (--delete/--gc) Lluís Batlle i Rossell 2010-04-25 20:52:49 +0000
  • 2be6118f4c * Don't need the test program anymore. Eelco Dolstra 2010-04-23 09:09:32 +0000
  • 0bc468f195 * Simplify the implementation of `with'. This gives a 7% speedup in evaluating the NixOS system configuration. Eelco Dolstra 2010-04-22 15:08:09 +0000
  • ee0384fb96 Eelco Dolstra 2010-04-22 11:34:15 +0000
  • 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.) Eelco Dolstra 2010-04-22 11:02:24 +0000
  • 2d7636529f * String equality tests should take the context into account. All the evaluation test cases now succeed. Eelco Dolstra 2010-04-22 09:54:11 +0000
  • 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%). Eelco Dolstra 2010-04-21 19:25:50 +0000
  • 7148df7971 * Update the expected test output (no longer an ATerm). Eelco Dolstra 2010-04-21 16:22:03 +0000
  • 6f0f16497a * Fix the interpretation of ''\<character> in indented strings. Eelco Dolstra 2010-04-21 16:18:27 +0000
  • cae4efdca3 * Because --parse-only no longer produces an ATerm, don't check the output. Whether it parses at all should be enough. Eelco Dolstra 2010-04-21 16:02:12 +0000
  • 0777448ca6 * Fixed builtins.genericClosure. Eelco Dolstra 2010-04-21 15:57:11 +0000
  • fe2d869e04 * Store user environment manifests as a Nix expression in $out/manifest.nix rather than as an ATerm. Eelco Dolstra 2010-04-21 15:08:58 +0000
  • d66ea83a76 * Sync with the trunk. Eelco Dolstra 2010-04-20 09:20:29 +0000
  • f3b8833a48 * Drop the dependency on the ATerm library. Eelco Dolstra 2010-04-19 14:51:58 +0000
  • efc7a579e8 * Don't use the ATerm library for parsing/printing .drv files. Eelco Dolstra 2010-04-19 13:46:58 +0000
  • 55b5ddd3ca * Added parsing of manifests in ATerm format. Eelco Dolstra 2010-04-19 12:10:04 +0000
  • b7ff69eb7c * Refactoring: move the user environment stuff into its own module. Eelco Dolstra 2010-04-19 10:47:56 +0000
  • 5c31995bb8 * Updated some more primops. Eelco Dolstra 2010-04-16 15:13:47 +0000
  • 8bb0210fea * _combineChannels shouldn't be an integer. Eelco Dolstra 2010-04-16 14:07:52 +0000
  • 8ca4a001cb * Improve sharing a bit. Eelco Dolstra 2010-04-16 14:03:26 +0000
  • 497e4ad126 * Remove some redundant tests. Eelco Dolstra 2010-04-16 13:51:01 +0000
  • 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.) Eelco Dolstra 2010-04-16 13:44:02 +0000
  • 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. Eelco Dolstra 2010-04-15 00:37:36 +0000
  • e41b5828db * Better stats. Eelco Dolstra 2010-04-14 23:48:46 +0000
  • d39d3c6264 * Implemented inherit. Eelco Dolstra 2010-04-14 23:25:05 +0000
  • 267dc693d2 * Fix builtins. Eelco Dolstra 2010-04-14 22:59:39 +0000
  • 81de12bc8f * Refactoring: move variable uses to a separate class. Eelco Dolstra 2010-04-14 15:14:23 +0000
  • 110d155778 * Implemented withs. Eelco Dolstra 2010-04-14 15:01:04 +0000
  • 9985230c00 * After parsing, compute level/displacement pairs for each variable use site, allowing environments to be stores as vectors of values rather than maps. This should speed up evaluation and reduce the number of allocations. Eelco Dolstra 2010-04-14 14:42:32 +0000
  • 816dd3f061 * Remove more obsolete code. Eelco Dolstra 2010-04-14 12:49:05 +0000
  • 011b5da0f4 * Get nix-env to compile again. Eelco Dolstra 2010-04-14 09:39:06 +0000
  • 85d13c8f93 * Change the semantics of "with" so that inner "withs" take precedence, i.e. `with {x=1;}; with {x=2;}; x' evaluates to 2'. This has a simpler implementation and seems more natural. There doesn't seem to be any code in Nixpkgs or NixOS that relies on the old behaviour. Eelco Dolstra 2010-04-14 08:37:08 +0000
  • 816f9c0f6f * Use std::tr1::unordered_set instead of std::set for the symbol table. This gives a 10% speed increase on `nix-instantiate /etc/nixos/nixos -A system --readonly-mode'. Eelco Dolstra 2010-04-13 14:34:11 +0000
  • 7d47498b5e * Evaluate lets directly (i.e. without desugaring to `rec { attrs...; <let-body> = e; }.<let-body>). This prevents the unnecessary allocation of an attribute set. Eelco Dolstra 2010-04-13 13:42:25 +0000
  • ac1e8f40d4 * Use a symbol table to represent identifiers and attribute names efficiently. The symbol table ensures that there is only one copy of each symbol, thus allowing symbols to be compared efficiently using a pointer equality test. Eelco Dolstra 2010-04-13 12:25:42 +0000
  • 10e8b1fd15 * Finished the ATerm-less parser. Eelco Dolstra 2010-04-12 23:33:23 +0000
  • 0d272fca79 * Remove some obsolete functions. Eelco Dolstra 2010-04-12 23:31:47 +0000
  • d4f0b0fc6c * Indented strings. Eelco Dolstra 2010-04-12 22:03:27 +0000
  • a60317f20f * More missing constructs. Eelco Dolstra 2010-04-12 21:21:24 +0000
  • 4d6ad5be17 * Don't use ATerms for the abstract syntax trees anymore. Not finished yet. Eelco Dolstra 2010-04-12 18:30:11 +0000
  • ed711f73bc * Don't use ATerms to represent integers in the lexer. Eelco Dolstra 2010-04-12 10:38:18 +0000
  • db90b88e65 * Hack to support builderDefs expressions. Eelco Dolstra 2010-04-12 09:50:20 +0000
  • 4e49002576 * Doh. Eelco Dolstra 2010-04-12 09:45:00 +0000
  • c3f228f296 Eelco Dolstra 2010-04-12 09:14:27 +0000
  • aac5fcfbb5 Re-add drvPath' and outPath' attributes to <derivation> XML nodes. Ludovic Courtès 2010-04-09 21:30:55 +0000
  • f3dc7ab877 * Keep more statistics about stack space usage. * Reduce stack space usage. Eelco Dolstra 2010-04-09 12:00:49 +0000