Commit Graph

1699 Commits

Author SHA1 Message Date
Eelco Dolstra
262b73e6ad * importPath: don't fail if the deriver is empty. 2008-04-22 08:16:20 +00:00
Eelco Dolstra
54ff6c02ec * A test for nix-store --import / --export. 2008-04-22 08:16:01 +00:00
Eelco Dolstra
f83f764218 * Cygwin compatibility (Cygwin can't upgrade read locks to write
locks, it deadlocks when you try to do that).
2008-04-10 06:53:16 +00:00
Eelco Dolstra
a599708b7a * Merged r11241 from the trunk. 2008-04-10 06:49:57 +00:00
Eelco Dolstra
fd350a1555 2008-03-10 11:02:16 +00:00
Eelco Dolstra
bcc3862331 * Configure option --disable-old-db-compat to build without Berkeley
DB, which is only needed for converting old databases.
2008-03-09 20:30:34 +00:00
Eelco Dolstra
341b2de643 * Lock the Nix store during upgrades. 2008-03-08 23:47:05 +00:00
Eelco Dolstra
4df6dc28c3 * Bug fixes. 2008-03-08 22:48:08 +00:00
Eelco Dolstra
a7154c5b14 2008-03-08 20:52:00 +00:00
Eelco Dolstra
10c6e2a629 * Combine referrer update to prevent quadratic complexity in the
garbage collector.
2008-03-08 19:21:20 +00:00
Eelco Dolstra
af7fd0b21f * Atomically update the info and referrer files. Lock the referrer
file when necessary.
2008-03-08 17:49:55 +00:00
Eelco Dolstra
0be3520d95 * Path invalidation: update the referrers. 2008-03-07 17:01:45 +00:00
Eelco Dolstra
8472d7eb31 * Now all the tests succeed (which mostly means there are not enough
tests... ;-)
2008-03-07 12:10:33 +00:00
Eelco Dolstra
95fa444587 * Down to 1 test failure... 2008-03-05 13:48:19 +00:00
Eelco Dolstra
07da660396 * More progress. 2008-03-04 18:16:31 +00:00
Eelco Dolstra
22c225a899 2008-03-04 08:30:44 +00:00
Eelco Dolstra
91313011f9 * Conversion to a BDB-free store. Meta-information for each valid
path (content hash, references, deriver) is now stored in
  /nix/var/nix/db/meta/<base-path>.info.  The referrers are stored
  separately in /nix/var/nix/db/meta/<base-path>.referrers.  This is
  done because the referrers can change, which the info file is in
  principle immutable.  The referrers must also be updated efficiently
  to prevent a regression of NIX-23 (quadratic complexity updating the
  referrers during garbage collection).

  This is just the conversion code, the rest of the code still uses
  BDB.
2008-03-03 15:29:03 +00:00
Eelco Dolstra
f5e6c9bcfd * Branch for a BDB-free implementation. 2008-03-01 22:23:56 +00:00
Eelco Dolstra
f789ea1d09 * A transaction is unnecessary since the path cannot be
garbage-collected (it's a temporary root).
2008-03-01 21:05:33 +00:00
Eelco Dolstra
d7caac3e81 * Don't install nix-reduce-build by default yet please, I first want
to understand better what it does...
2008-02-28 21:27:47 +00:00
Michael Raskin
11d512e7a8 Added nix-reduce-build. You point it to some path you want to build and it fetches whatever it can from specified computers via nix-copy-closure. NOTE: You do want to set up RSA keys or ssh-agent or something... You really do want it. It will run separate ssh instances insane number of times. 2008-02-27 21:26:47 +00:00
Eelco Dolstra
0a84137c45 * checkVarDefs: don't check in closed terms, which don't have
undefined variables by definition.  This matters for the
  implementation of "with", which does a call to checkVarDefs to see
  if the body of the with has no undefined variables.  (It can't be
  checked at parse time because you don't know which variables are in
  the "with" attribute set.)  If we check closed terms, then we check
  not just the with body but also the substituted terms, which are
  typically very large.  This is the cause of the poor nix-env
  performance on Nixpkgs lately.  It didn't happen earlier because
  "with" wasn't used very often in the past.

  This fix improves nix-env performance roughly 60x on current Nixpkgs.
  nix-env -qa is down from 29.3s to 0.5s on my laptop, and nix-env -qa
  --out-path is down from 229s to 3.39s.  Not bad for a 1-line fix :-)
2008-02-21 12:01:24 +00:00
Eelco Dolstra
0ed89c569f * Fix the parsing of
''
      '${foo}'
    ''
    
  where the antiquote should work as expected, instead of giving the
  string "'${foo}'".
2008-02-05 13:38:07 +00:00
Eelco Dolstra
4066f450c2 * Doh. 2008-02-05 13:35:49 +00:00
Eelco Dolstra
e7bdde981f * Regression test. 2008-02-05 13:25:18 +00:00
Eelco Dolstra
66c51dc215 * nix-store --dump-db / --load-db to dump/load the Nix DB.
* nix-store --register-validity: option to supply the content hash of
  each path.
* Removed compatibility with Nix <= 0.7 stores.
2008-01-29 18:17:36 +00:00
Michael Raskin
5b5a3af983 Probably fixed __exprToString 2008-01-20 20:44:03 +00:00
Michael Raskin
5eb5c23447 Fixed exportBuildReferenceGraph 2008-01-15 04:32:08 +00:00
Eelco Dolstra
7d0f6aed59 * New primop `unsafeDiscardStringContext' to get rid of string
contexts.  Needed to prevent unnecessary dependencies when building
  the NixOS manual.
2008-01-04 14:22:49 +00:00
Eelco Dolstra
895c953817 * Bumped the version number to 0.12. 2007-12-31 17:53:59 +00:00
Eelco Dolstra
d4117859d6 2007-12-31 16:57:12 +00:00
Eelco Dolstra
e0ca671491 * More documentation. 2007-12-31 02:52:17 +00:00
Eelco Dolstra
6bdecfacbb * Documented a bunch of nix-store commands. 2007-12-31 01:52:57 +00:00
Eelco Dolstra
454f571f87 2007-12-31 01:22:09 +00:00
Eelco Dolstra
4c82983010 2007-12-31 01:17:25 +00:00
Eelco Dolstra
f60aa2aa21 2007-12-31 00:34:44 +00:00
Eelco Dolstra
dedd62dd0c * More release notes. 2007-12-31 00:08:09 +00:00
Eelco Dolstra
b5ddcf58ad * Fix the hashDerivationModulo test. I should really investigate
*why* the test failed...
2007-12-30 23:59:10 +00:00
Eelco Dolstra
59707975a3 * Documented indented string literals.
* Release notes.
2007-12-30 23:36:09 +00:00
Eelco Dolstra
de012e76e2 * Don't use "store expression", it's obsolete. 2007-12-30 23:35:45 +00:00
Michael Raskin
2196cb67c5 Added a way to include derivation with its outputs and dependencies - exportBuildReferenceGraph 2007-12-30 09:30:56 +00:00
Eelco Dolstra
df303666bc * Use strsignal if available to give better error messages for
builders that fail due to a signal.
2007-12-14 14:49:35 +00:00
Eelco Dolstra
1e90b4189d * Another insane Mac OS X 10.5 compatibility hack. 2007-12-14 14:15:30 +00:00
Eelco Dolstra
485d71c54a * Mac OS X 10.5 compatibility: echo -n foo' suddenly prints -n foo'
instead of `foo' without a newline (with /bin/sh, not /bin/bash,
  even though /bin/sh is also bash...).  So use printf instead.
2007-12-14 14:08:09 +00:00
Eelco Dolstra
30e4653783 * Mac OS X 10.5 compatibility. 2007-12-13 22:06:19 +00:00
Marc Weber
4ff1335b2e small udpate 2007-12-12 02:12:58 +00:00
Michael Raskin
3a2833daff corrected --help message for nix-store a bit 2007-12-10 22:16:47 +00:00
Marc Weber
764b0115d5 Very basic nix vim syntax highlighting 2007-12-10 21:17:29 +00:00
Eelco Dolstra
b42ef9c054 * Syntax to escape '', ${. 2007-12-06 10:20:58 +00:00
Eelco Dolstra
d4950f207f * component -> package. 2007-12-04 11:42:58 +00:00