Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-11-26 | nix-instantiate: Fix read-only evaluation | Eelco Dolstra | 1 | -9/+2 | |
2012-11-26 | Make "nix-build -A <derivation>.<output>" do the right thing | Eelco Dolstra | 1 | -1/+15 | |
For example, given a derivation with outputs "out", "man" and "bin": $ nix-build -A pkg produces ./result pointing to the "out" output; $ nix-build -A pkg.man produces ./result-man pointing to the "man" output; $ nix-build -A pkg.all produces ./result, ./result-man and ./result-bin; $ nix-build -A pkg.all -A pkg2 produces ./result, ./result-man, ./result-bin and ./result-2. | |||||
2012-10-04 | getDerivation(): Don't always quietly ignore assertion failure | Eelco Dolstra | 1 | -1/+1 | |
Ignoring assertion failures makes some sense for nix-env -qa, but not for nix-instantiate/nix-build or hydra-eval-jobs. | |||||
2012-10-03 | When ‘--help’ is given, just run ‘man’ to show the manual page | Eelco Dolstra | 3 | -39/+2 | |
I.e. do what git does. I'm too lazy to keep the builtin help text up to date :-) Also add ‘--help’ to various commands that lacked it (e.g. nix-collect-garbage). | |||||
2012-10-03 | Add a ‘--repair’ flag to nix-instantiate | Eelco Dolstra | 1 | -0/+2 | |
This allows repairing corrupted derivations and other source files. | |||||
2012-08-28 | Make "nix-instantiate -" interruptible | Eelco Dolstra | 1 | -3/+1 | |
2012-08-27 | Merge branch 'master' into no-manifests | Eelco Dolstra | 1 | -3/+5 | |
2012-08-24 | Include the output name in the GC root link | Eelco Dolstra | 1 | -3/+5 | |
Output names are now appended to resulting GC symlinks, e.g. by nix-build. For backwards compatibility, if the output is named "out", nothing is appended. E.g. doing "nix-build -A foo" on a derivation that produces outputs "out", "bin" and "dev" will produce symlinks "./result", "./result-bin" and "./result-dev", respectively. | |||||
2012-07-30 | Refactor settings processing | Eelco Dolstra | 1 | -2/+2 | |
Put all Nix configuration flags in a Settings object. | |||||
2012-04-17 | nix-instantiate: default to "default.nix" if no arguments are given | Eelco Dolstra | 1 | -1/+2 | |
2012-04-17 | Added utility command ‘nix-instantiate --find-file’ to look up a file in ↵ | Eelco Dolstra | 1 | -0/+12 | |
Nix's search path | |||||
2012-02-04 | * Inline some functions and get rid of the indirection through | Eelco Dolstra | 1 | -0/+1 | |
EvalState::eval(). This gives a 12% speedup on ‘nix-instantiate /etc/nixos/nixos/ -A system --readonly-mode’ (from 1.01s to 0.89s). | |||||
2011-12-01 | * Allow '<nixexpr>' syntax to be used in nix-instantiate, nix-build | Eelco Dolstra | 1 | -2/+1 | |
and nix-env, e.g., $ nix-env -f '<nixpkgs>' -i patchelf or $ nix-build '<nixos/tests>' -A login.test | |||||
2011-08-31 | * Eliminate all uses of the global variable ‘store’ from libstore. | Eelco Dolstra | 1 | -3/+2 | |
This should also fix: nix-instantiate: ./../boost/shared_ptr.hpp:254: T* boost::shared_ptr<T>::operator->() const [with T = nix::StoreAPI]: Assertion `px != 0' failed. which was caused by hashDerivationModulo() calling the ‘store’ object (during store upgrades) before openStore() assigned it. | |||||
2011-08-06 | * Add a Nix expression search path feature. Paths between angle | Eelco Dolstra | 1 | -0/+2 | |
brackets, e.g. import <nixpkgs/pkgs/lib> are resolved by looking them up relative to the elements listed in the search path. This allows us to get rid of hacks like import "${builtins.getEnv "NIXPKGS_ALL"}/pkgs/lib" The search path can be specified through the ‘-I’ command-line flag and through the colon-separated ‘NIX_PATH’ environment variable, e.g., $ nix-build -I /etc/nixos ... If a file is not found in the search path, an error message is lazily thrown. | |||||
2011-08-06 | * Refactoring: move parseExprFromFile() and parseExprFromString() into | Eelco Dolstra | 1 | -3/+2 | |
the EvalState class. | |||||
2010-11-16 | * Sync with the trunk. | Eelco Dolstra | 1 | -4/+4 | |
2010-10-28 | * Handle out of memory condition. | Eelco Dolstra | 1 | -2/+1 | |
2010-10-22 | * Store Value nodes outside of attribute sets. I.e., Attr now stores | Eelco Dolstra | 1 | -1/+1 | |
a pointer to a Value, rather than the Value directly. This improves the effectiveness of garbage collection a lot: if the Value is stored inside the set directly, then any live pointer to the Value causes all other attributes in the set to be live as well. | |||||
2010-10-22 | * Make building against the Boehm GC a configure option. | Eelco Dolstra | 1 | -4/+2 | |
2010-10-20 | * Use the Boehm garbage collector to reclaim unused memory in the Nix | Eelco Dolstra | 1 | -2/+5 | |
expression evaluator. | |||||
2010-10-04 | * Make sure that config.h is included before the system headers, | Eelco Dolstra | 1 | -3/+3 | |
because it defines _FILE_OFFSET_BITS. Without this, on OpenSolaris the system headers define it to be 32, and then the 32-bit stat() ends up being called with a 64-bit "struct stat", or vice versa. This also ensures that we get 64-bit file sizes everywhere. * Remove the redundant call to stat() in parseExprFromFile(). The file cannot be a symlink because that's the exit condition of the loop before. | |||||
2010-05-12 | * Sync with the trunk. | Eelco Dolstra | 2 | -53/+41 | |
2010-05-07 | * Sync with the trunk. | Eelco Dolstra | 2 | -4/+9 | |
2010-04-20 | * Sync with the trunk. | Eelco Dolstra | 2 | -6/+11 | |
2010-04-19 | * Drop the dependency on the ATerm library. | Eelco Dolstra | 1 | -2/+1 | |
2010-04-13 | * Use a symbol table to represent identifiers and attribute names | Eelco Dolstra | 1 | -2/+2 | |
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. | |||||
2010-04-12 | * Indented strings. | Eelco Dolstra | 1 | -1/+1 | |
2010-04-12 | * Don't use ATerms for the abstract syntax trees anymore. Not | Eelco Dolstra | 1 | -5/+5 | |
finished yet. | |||||
2010-04-08 | * Remove a lot of dead code. | Eelco Dolstra | 1 | -1/+1 | |
2010-04-07 | * Update autoCallFunction() and findAlongAttrPath(). | Eelco Dolstra | 1 | -73/+30 | |
2010-04-07 | * expr-to-xml -> value-to-xml. | Eelco Dolstra | 1 | -3/+8 | |
2010-04-07 | * Implemented the primops necessary for generating the NixOS manual. | Eelco Dolstra | 1 | -1/+2 | |
2010-03-31 | * Implemented derivations. | Eelco Dolstra | 1 | -2/+17 | |
2010-03-31 | Make source location info in the XML output optional. | Ludovic Courtès | 2 | -6/+11 | |
* src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location' parameter. Provide location XML attributes when it's true. Update callers. (nix::printTermAsXML): Likewise. * src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype; have `location' default to `false'. * src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add `location' parameter; update callers. (run): Add support for `--no-location'. * src/nix-instantiate/help.txt: Update accordingly. * tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the XML tests. * tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New files. | |||||
2010-03-30 | * More operators / primops. | Eelco Dolstra | 1 | -3/+7 | |
2010-03-30 | * More primops. | Eelco Dolstra | 1 | -1/+1 | |
2010-03-29 | * Started integrating the new evaluator. | Eelco Dolstra | 1 | -1/+9 | |
2010-03-02 | * When using the included sqlite/aterm libraries, build with | Eelco Dolstra | 2 | -1/+2 | |
--enable-shared. * In libutil/libstore/libexpr etc., link against sqlite and aterm. * Some more header file hygiene. | |||||
2010-02-24 | * `helpText' is now zero-terminated. | Eelco Dolstra | 1 | -1/+1 | |
2010-02-24 | * ADDITIONAL_NETWORK_LIBS -> LIBS. | Eelco Dolstra | 1 | -1/+1 | |
2010-02-24 | * Add ${sqlite_lib} everywhere. Just adding it in `libstore' doesn't | Eelco Dolstra | 1 | -1/+1 | |
work on x86_64 when sqlite is compiled statically. | |||||
2009-11-06 | * Remove support for old (before Nix 0.12pre12020) databases. | Eelco Dolstra | 1 | -2/+2 | |
2009-10-08 | Added optional parameter which adds -lnsl -lsocket to make the Nix package ↵ | Sander van der Burg | 1 | -1/+1 | |
manager work on OpenSolaris | |||||
2007-01-14 | * Option --argstr for passing string arguments easily. (NIX-75) | Eelco Dolstra | 1 | -9/+3 | |
2007-01-13 | * Allow multiple --attr / -A arguments in nix-build / nix-instantiate | Eelco Dolstra | 1 | -15/+20 | |
(NIX-74). | |||||
2007-01-13 | * Canonicalise ASTs in `nix-instantiate --eval': remove position | Eelco Dolstra | 1 | -1/+1 | |
info, sort attribute sets. | |||||
2006-12-07 | * Doh! | Eelco Dolstra | 1 | -1/+1 | |
2006-12-07 | * Rename all those main.cc files. | Eelco Dolstra | 2 | -1/+1 | |
2006-12-05 | * Allow unprivileged users to run the garbage collector and to do | Eelco Dolstra | 1 | -1/+0 | |
`nix-store --delete'. But unprivileged users are not allowed to ignore liveness. * `nix-store --delete --ignore-liveness': ignore the runtime roots as well. |