Commit graph

  • 19d9762ad5 nix-store --clear-failed-paths: Clear derivation outputs Eelco Dolstra 2012-03-20 18:23:26 +0100
  • cb79e91ec3 Fix the coverage build Eelco Dolstra 2012-03-19 17:05:42 +0100
  • 457dd55962 Fix the Deb builds Eelco Dolstra 2012-03-19 15:11:22 +0100
  • 4b83483142 Fix the RPM Eelco Dolstra 2012-03-19 14:30:59 +0100
  • 7f38087f35 Add a command "nix-build --run-env" to reproduce the environment of a derivation Eelco Dolstra 2012-03-19 04:14:21 +0100
  • ea402a255f Replace "make check" with "make installcheck" Eelco Dolstra 2012-03-19 01:20:02 +0100
  • 4b23900ff1 Fix the optional dependency on OpenSSL Eelco Dolstra 2012-03-19 01:06:13 +0100
  • b006a31d52 Drop the externals directory Eelco Dolstra 2012-03-18 23:54:57 +0100
  • 2e0322efd1 Clean up when building from a working tree Eelco Dolstra 2012-03-18 22:10:59 +0100
  • bd50c01972 Ensure that Perl processes delete their entry in the temproots directory Eelco Dolstra 2012-03-13 17:07:49 +0100
  • b461721f17 Fix tests Eelco Dolstra 2012-03-12 21:41:45 +0100
  • 005d1e4ccb Update bzip2 dependency Eelco Dolstra 2012-03-06 20:03:20 +0100
  • 605b16cd7b Fix compilation on FreeBSD Eelco Dolstra 2012-03-05 22:04:40 +0100
  • d645633643 nix-copy-closure: don't print copied path on stdout Eelco Dolstra 2012-03-05 20:52:24 +0100
  • 35355fc1fc Set the close-on-exec flag on file descriptors Eelco Dolstra 2012-03-05 20:29:00 +0100
  • 7b22bec252 Don't leak a file descriptor in commonChildInit() Eelco Dolstra 2012-03-05 20:28:09 +0100
  • 1d487dc6a6 nix-worker: put the pid of the caller in argv[1] Eelco Dolstra 2012-03-05 19:19:29 +0100
  • 2b4964f319 Restore progress indication during nix-copy-closure Eelco Dolstra 2012-03-05 18:13:44 +0100
  • 56042a120a build-remote.pl: don't wait forever for the upload lock Eelco Dolstra 2012-03-05 17:58:09 +0100
  • 8afd28a922 Remove dependency on sqlite3_table_column_metadata Eelco Dolstra 2012-03-01 16:04:12 +0100
  • 1c94524458 Fix an uninitialised variable Eelco Dolstra 2012-02-24 20:57:54 +0100
  • 6fe13e6aba Fix chroots builds Eelco Dolstra 2012-02-18 01:23:52 +0100
  • bd013b6f98 On Linux, make the Nix store really read-only by using the immutable bit Eelco Dolstra 2012-02-15 01:31:56 +0100
  • 5e57047d87 Fix a broken guard around utime() Eelco Dolstra 2012-02-15 01:00:30 +0100
  • 58ac7a17a4 Don't use deletePath() to delete a single file Eelco Dolstra 2012-02-15 00:28:01 +0100
  • e9fc91df45 Fix error message Eelco Dolstra 2012-02-09 18:56:48 +0100
  • d5a5a83ad4 Use data() instead of c_str() where appropriate Eelco Dolstra 2012-02-09 18:27:45 +0100
  • ec2827f5fc Update .gitignore Eelco Dolstra 2012-02-08 19:25:43 +0100
  • 4055a3b19c Remove empty ChangeLog file Eelco Dolstra 2012-02-08 13:22:08 +0100
  • fb95455c02 Set the versionSuffix to include the Git shortrev Eelco Dolstra 2012-02-08 12:31:14 +0100
  • 67444f5e54 * Build Nix for the latest Fedora and Ubuntu releases (and drop some old ones). Eelco Dolstra 2012-02-07 13:18:20 +0000
  • f491ae97d4 * Inline some functions and get rid of the indirection through EvalState::eval(). This gives a 12% speedup on ‘nix-instantiate /etc/nixos/nixos/ -A system --readonly-mode’ (from 1.01s to 0.89s). Eelco Dolstra 2012-02-04 13:50:25 +0000
  • 2bda12ef3b * Print elapsed evaluation time. Eelco Dolstra 2012-02-04 13:27:11 +0000
  • ce86a9a0ae * nix-channel: fail if we don't have write permission to the manifests directory. Previously in this situation we did add the Nix expressions from the channel to allow installation from source, but this doesn't work for binary-only channels and leads to confusing error messages. Eelco Dolstra 2012-02-02 12:25:56 +0000
  • baa0501cc1 * Fix importing a derivation. This gave a segfault. Eelco Dolstra 2012-01-26 13:13:00 +0000
  • 4c9fdd2cd6 * Add a test for importing derivations. Eelco Dolstra 2012-01-26 13:04:50 +0000
  • 330df4b4db * Allow comparisons between derivations by comparing the outPath attributes. Eelco Dolstra 2012-01-19 23:08:47 +0000
  • 18047d4625 * Add some debug output to print the derivation name once it's known. This makes it easier to pinpoint the source of a crash. Eelco Dolstra 2012-01-19 23:07:42 +0000
  • 126c7317bc * Add a test case for comparing derivations. Eelco Dolstra 2012-01-19 22:10:24 +0000
  • ddd0ce534a * Don't distribute Store.cc, it's generated automatically by xsubpp. Eelco Dolstra 2012-01-18 16:43:48 +0000
  • 02f1363e19 * Pass the appropriate flags to GCC when building the Perl bindings. Without these, Nix fails on 32-bit Linux with Perl 5.14, with a rather unhelpful error message: Eelco Dolstra 2012-01-18 16:39:54 +0000
  • 4e624849b6 * Added a command ‘nix-store --print-env $drvpath’ that prints out the environment of the given derivation in a format that can be sourced by the shell, e.g. Eelco Dolstra 2012-01-17 23:07:22 +0000
  • 2a3f4110c5 * nix-build: put the temporary derivation symlink in a temporary directory rather than the current directory. * nix-build: --drv-link now implies --add-drv-link. Eelco Dolstra 2012-01-13 23:35:07 +0000
  • 7ae763e16b * ‘-module’ causes the generated library to have an .so extension on Mac OS X instead of .dylib, so don't do that. Eelco Dolstra 2012-01-12 14:16:25 +0000
  • 6245f0d529 tests: Run `download-using-manifests' via libtool so that dlopening works. Ludovic Courtès 2012-01-11 16:58:49 +0000
  • c5d9ccd810 perl: Build libNixStore.la with `-module'. Ludovic Courtès 2012-01-11 16:44:42 +0000
  • f86fca9b70 * Figure out the extension of dynamic libraries; don't hard-code .so. Eelco Dolstra 2012-01-11 15:41:42 +0000
  • 9fe24c5a0d * Don't create thunks for simple constants (integers, strings, paths) and allocate them only once. * Move Value and related functions into value.hh. Eelco Dolstra 2012-01-07 17:26:33 +0000
  • d4e6b9f2d6 * Doh! Eelco Dolstra 2012-01-05 21:07:12 +0000
  • a7366a764a * Add a -I flag to the Perl bindings to nix-build and some other scripts. * Include the version and architecture in the -I flag so that there is at least a chance that a Nix binary built for one Perl version will run on another version. Eelco Dolstra 2012-01-05 20:33:46 +0000
  • b52966e821 * Remove dead code. Eelco Dolstra 2012-01-04 21:47:48 +0000
  • 35f2a6ba82 * Don't use dynamic_cast, it's very slow. "nix-instantiate /etc/nixos/nixos -A system" spent about 10% of its time in dynamic_cast. Eelco Dolstra 2012-01-04 21:24:11 +0000
  • adaf64a99b * Merge the multiple-outputs-sandbox branch (svn merge --reintegrate ^/nix/branches/multiple-outputs-sandbox). Multiple output support still isn't complete, but it wasn't complete in the trunk either, so it doesn't hurt. Eelco Dolstra 2012-01-04 16:22:25 +0000
  • 9936da6b54 * Check whether the outputName attribute works. Eelco Dolstra 2012-01-04 12:45:53 +0000
  • 9d43a02382 * Let --disable-gc work. Eelco Dolstra 2012-01-04 12:45:40 +0000
  • a0477a458f * currentOutput -> outputName. "current" implies some temporal aspect. Eelco Dolstra 2012-01-04 12:00:39 +0000
  • b79b85ad76 * Export the original input attributes of the derivation in ‘drvAttrs’. This will simplify the implementation of functions such as ‘overrideDerivation’ in Nixpkgs, which need to filter out any added attributes such as outPath. Eelco Dolstra 2012-01-04 11:56:15 +0000
  • 83647f4ef1 * Simplify the implementation of "derivation" a bit: lift out the common attribution so that they're evaluated only once, etc. Note that the default output is now the first element of the "outputs" attribute, rather than the first element of the sorted list of outputs. This seems more user-friendly. Eelco Dolstra 2012-01-04 11:04:19 +0000
  • 71f3c46cf6 * Drop the inefficient "Path" suffix in output attribute names. Eelco Dolstra 2012-01-03 15:27:18 +0000
  • 921111d197 * Move the implementation of the ‘derivation’ primop into a separate file. Eelco Dolstra 2012-01-03 14:01:47 +0000
  • 6c31232e14 * Sync with the trunk. Eelco Dolstra 2012-01-03 12:59:31 +0000
  • 502d94048a * Ignore missing manifest symlinks. Eelco Dolstra 2012-01-03 12:59:00 +0000
  • 63227d434c * FreeBSD tar defaults to the tape device instead of stdout. Eelco Dolstra 2012-01-03 12:18:41 +0000
  • 9b7df1ef00 * Forgot to add. Eelco Dolstra 2012-01-03 09:19:40 +0000
  • 39d45a6b09 * Add a test for nix-channel. * Refactor the nix-channel unpacker a bit. Eelco Dolstra 2012-01-03 01:51:38 +0000
  • dadbb51d96 * Use Nix::Config. Eelco Dolstra 2012-01-03 00:47:27 +0000
  • 48cea0d01e * Refactoring: Get rid of a few subdirectories in corepkgs/, and some other simplifications. * Use <nix/...> to locate the corepkgs. This allows them to be overriden through $NIX_PATH. * Use bash's pipefail option in the NAR builder so that we don't need to create a temporary file. Eelco Dolstra 2012-01-03 00:16:29 +0000
  • 93e71e6ab6 * Follow our own coding conventions. Eelco Dolstra 2011-12-30 17:39:03 +0000
  • f2d65c9c80 * Remove a redundant dot (Nicolas Pierron). Eelco Dolstra 2011-12-30 17:31:58 +0000
  • 93b56acb2d * Support multiple outputs in nix-store (specifically the ‘--query’ and ‘--realise’ actions). Eelco Dolstra 2011-12-30 17:25:19 +0000
  • a71d02440b * Oops. Eelco Dolstra 2011-12-30 17:13:25 +0000
  • 6f5e3326ce * Move topoSortPaths() out of gc.cc. Eelco Dolstra 2011-12-30 15:02:50 +0000
  • b1004f40f7 * Reject a build if there is a cycle among the outputs. This is necessary because existing code assumes that the references graph is acyclic. Eelco Dolstra 2011-12-30 14:47:14 +0000
  • ed11b17b2e * Fix doc error. Eelco Dolstra 2011-12-30 13:43:29 +0000
  • 254b3399ba * Sync with the trunk. Eelco Dolstra 2011-12-30 13:08:14 +0000
  • 8c42a8c8ff * Make sure that lock files are cleaned up properly when building through the build hook. Eelco Dolstra 2011-12-25 16:38:37 +0000
  • 524fa8a4f1 * Oops. Eelco Dolstra 2011-12-22 16:27:03 +0000
  • b33da599c5 * In the garbage collector, delete invalid paths before deleting unreachable paths. This matters when using --max-freed etc.: unreachable paths could become reachable again, so it's nicer to keep them if there is "real" garbage to be deleted. Also, don't use readDirectory() but read the Nix store and delete invalid paths in parallel. This reduces GC latency on very large Nix stores. Eelco Dolstra 2011-12-22 15:55:53 +0000
  • 58d974336c * Drop unnecessary call to canonPath() (nixStore is already canonical). Eelco Dolstra 2011-12-22 14:33:34 +0000
  • 66c99b0cf5 * ‘--disable-shared’ is no longer supported. Fortunately it's not needed for the coverage analysis. Eelco Dolstra 2011-12-22 10:58:27 +0000
  • 2aac7cd021 * Another case of lock file permissions being too liberal. Eelco Dolstra 2011-12-21 19:17:45 +0000
  • 4d728bc3e6 * Security: make sure the lock files used by build-remote.pl are not readable to other users. Otherwise, any user can open the lock file for reading and lock it, thus DoSing the remote build mechanism. Eelco Dolstra 2011-12-21 19:11:58 +0000
  • 69d6f0936a * Use a lock to ensure that only one build-remote instance can copy a closure to a given machine at the same time. This prevents the case where multiple instances try to copy the same missing store path to the target machine, which is very wasteful. Eelco Dolstra 2011-12-21 18:59:25 +0000
  • 5679041132 * The ‘foo.drvPath’ feature was already broken in read-only mode. Since it's rarely used and fixing it is too much work right now, just document it. Eelco Dolstra 2011-12-21 18:19:05 +0000
  • f8e54b7874 Make the reference cycle in the cyclic outputs test indirect Shea Levy 2011-12-21 17:34:44 +0000
  • b4cee3f816 Revert previous commit Shea Levy 2011-12-21 17:31:34 +0000
  • f3c88f297d Detect and reject mutually-referential outputs Shea Levy 2011-12-21 17:14:28 +0000
  • b19a0f63db * Simplify the context handling logic. Eelco Dolstra 2011-12-21 15:33:30 +0000
  • 4be5a2c096 * Add a test for unsafeDiscardOutputDependency. Not really related to multiple outputs, but good to have anyway. Eelco Dolstra 2011-12-21 14:42:06 +0000
  • 179409b911 * Add a test for referring to another derivation's ‘drvPath’. This currently fails in read-only mode. Eelco Dolstra 2011-12-21 13:47:21 +0000
  • 3877619888 * Add some accidentally committed files. Eelco Dolstra 2011-12-21 11:47:52 +0000
  • edd9359beb * Doing a GC after building a derivation with cyclic outputs currently segfaults. Eelco Dolstra 2011-12-20 17:10:39 +0000
  • 1f3b0ede7d * Add a (currently failing) test that checks whether mutually recursive outputs are properly rejected. * Add a (also failing) test for "nix-build -A <output-name>". Eelco Dolstra 2011-12-20 17:08:43 +0000
  • 46e42c92c1 * Refactor a bit so that more tests can be added. Eelco Dolstra 2011-12-20 17:01:02 +0000
  • b5363810bb * Fix the build. Eelco Dolstra 2011-12-20 16:37:01 +0000
  • 194d21f9f6 * Sync with the trunk. Eelco Dolstra 2011-12-16 23:33:01 +0000
  • 273b288a7e * importPath() -> importPaths(). Because of buffering of the input stream it's now necessary for the daemon to process the entire sequence of exported paths, rather than letting the client do it. Eelco Dolstra 2011-12-16 22:31:25 +0000
  • 8d3dfa2c17 * Avoid expensive conversions from char arrays to STL strings. Eelco Dolstra 2011-12-16 21:29:46 +0000
  • e0bd307802 * Make the import operation through the daemon much more efficient (way fewer roundtrips) by allowing the client to send data in bigger chunks. * Some refactoring. Eelco Dolstra 2011-12-16 19:44:13 +0000
  • 78598d06f0 * Clean up exception handling. Eelco Dolstra 2011-12-16 15:45:42 +0000