about summary refs log tree commit diff
path: root/src/nix-env/nix-env.cc
AgeCommit message (Collapse)AuthorFilesLines
2012-07-30 Refactor settings processingEelco Dolstra1-12/+8
Put all Nix configuration flags in a Settings object.
2012-07-11 Replace hasSubstitutes() with querySubstitutablePaths()Eelco Dolstra1-4/+6
querySubstitutablePaths() takes a set of paths, so this greatly reduces daemon <-> client latency.
2012-07-11 Add a function queryValidPaths()Eelco Dolstra1-3/+6
queryValidPaths() combines multiple calls to isValidPath() in one. This matters when using the Nix daemon because it reduces latency. For instance, on "nix-env -qas \*" it reduces execution time from 5.7s to 4.7s (which is indistinguishable from the non-daemon case).
2012-07-11 nix-env: Determine which paths have substitutes in parallelEelco Dolstra1-1/+18
2012-06-27 nix-store -r: do substitutions in parallelEelco Dolstra1-1/+1
I.e. when multiple non-derivation arguments are passed to ‘nix-store -r’ to be substituted, do them in parallel.
2011-12-01 * Allow '<nixexpr>' syntax to be used in nix-instantiate, nix-buildEelco Dolstra1-1/+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 Dolstra1-4/+4
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 angleEelco Dolstra1-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() intoEelco Dolstra1-4/+3
the EvalState class.
2011-04-11 * `nix-env -ub' (`--prebuilt-only') didn't really work because itEelco Dolstra1-17/+20
checked too soon whether substitutes are available. That is, it did so for every available package, rather than those matching installed packages. This was very slow and subject to assertion failures. So do the check much later. Idem for `nix-env -qab' and `nix-env -ib'.
2010-11-16 * Sync with the trunk.Eelco Dolstra1-4/+4
2010-10-24 * Keep attribute sets in sorted order to speed up attribute lookups.Eelco Dolstra1-2/+2
* Simplify the representation of attributes in the AST. * Change the behaviour of listToAttrs() in case of duplicate names.
2010-10-22 * Store Value nodes outside of attribute sets. I.e., Attr now storesEelco Dolstra1-2/+2
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-04 * Sync with the trunk.Eelco Dolstra1-1/+0
2010-09-14 * Doh. Remove debug message.Eelco Dolstra1-1/+0
2010-08-04 * Sync with the trunk.Eelco Dolstra1-7/+13
2010-08-04 * Set the default system filter to "*". This ensures that (forEelco Dolstra1-7/+13
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.
2010-05-12 * Sync with the trunk.Eelco Dolstra1-197/+31
2010-05-06 * Store attribute positions in the AST and report duplicate attributeEelco Dolstra1-2/+3
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-04-21 * Store user environment manifests as a Nix expression inEelco Dolstra1-136/+0
$out/manifest.nix rather than as an ATerm. (Hm, I thought I committed this two days ago...)
2010-04-19 * Refactoring: move the user environment stuff into its own module.Eelco Dolstra1-19/+1
2010-04-16 * _combineChannels shouldn't be an integer.Eelco Dolstra1-1/+1
2010-04-16 * In an nested `with' where the inner with is a variable (`with ...;Eelco Dolstra1-0/+1
with someVar; ...'), the contents of the variable would be clobbered. (The attributes in the outer `with' were added to the variable.)
2010-04-14 * Get nix-env to compile again.Eelco Dolstra1-29/+14
2010-04-12 * Don't use ATerms for the abstract syntax trees anymore. NotEelco Dolstra1-3/+2
finished yet.
2010-04-07 * Update autoCallFunction() and findAlongAttrPath().Eelco Dolstra1-13/+9
2010-03-31 * Get nix-env to compile.Eelco Dolstra1-12/+19
2010-03-02 * When using the included sqlite/aterm libraries, build withEelco Dolstra1-0/+1
--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 Dolstra1-1/+1
2009-10-13 * Give a useful error message when an evaluation error occurs whileEelco Dolstra1-41/+48
trying to upgrade a package.
2009-07-02 * Replace newlines in table output with spaces.Eelco Dolstra1-6/+7
2009-06-30 * Support integers and lists of strings in meta fields. This isEelco Dolstra1-28/+60
useful for fields like meta.maintainers, meta.priority (which can be a proper integer now) and even meta.license (if there are multiple licenses).
2008-09-18 * Fix `--from-profile'.Eelco Dolstra1-3/+5
2008-09-02 * When writing the user environment manifest, filter out non-stringEelco Dolstra1-7/+9
attributes from the meta attribute. Not doing so caused nix-env to barf on the "psi" package, which has a meta.function attribute, the textual serialisation of which causes a gigantic string to be produced --- so big that it causes nix-env to run out of memory. Note however that "meta" really only should contain strings. meta.function should be passthru.function.
2008-08-25 * Minor simplification.Eelco Dolstra1-1/+1
2008-08-25 * Strip off the `.nix' suffix from the attribute name for files inEelco Dolstra1-3/+14
~/.nix-defexpr, otherwise the attribute cannot be selected with the `-A' option. Useful if you want to stick a Nix expression directly in ~/.nix-defexpr.
2008-08-04 * Use optimistic profile locking for nix-env operations like `-i' andEelco Dolstra1-138/+163
`-u'. Instead of acquiring an exclusive lock on the profile for the entire duration of the operation, we just perform the operation optimistically (without an exclusive lock), and check at the end whether the profile changed while we were busy (i.e., the symlink target changed). If so, the operation is restarted. Restarting is generally cheap, since the build results are still in the Nix store. Most of the time, only the user environment has to be rebuilt.
2008-08-04 * `nix-env --set': support --dry-run.Eelco Dolstra1-3/+10
2008-08-04 * `nix-store --realise': print what paths will be built/downloaded,Eelco Dolstra1-24/+3
just like nix-env. * `nix-store --realise': --dry-run option.
2008-08-04 * Always show what paths we're going to build/download (as inEelco Dolstra1-9/+7
--dry-run). Maybe there should be an option to turn this on/off?
2008-08-04 * nix-env --dry-run: show the total size of the substituterEelco Dolstra1-2/+4
downloads.
2008-08-04 * querySubstitutablePathInfo: work properly when run via the daemon.Eelco Dolstra1-5/+12
* --dry-run: print the paths that we don't know how to build/substitute.
2008-06-09 * Merged the no-bdb branch (-r10900:HEADEelco Dolstra1-1/+0
https://svn.nixos.org/repos/nix/nix/branches/no-bdb).
2007-11-29 * nix-env -e: support uninstalling by path, so that one can sayEelco Dolstra1-19/+23
$ nix-env -e $(which firefox) or $ nix-env -e /nix/store/nywzlygrkfcgz7dfmhm5xixlx1l0m60v-pan-0.132 * nix-env -i: if an argument contains a slash anywhere, treat it as a path and follow it through symlinks into the Nix store. This allows things like $ nix-build -A firefox $ nix-env -i ./result * nix-env -q/-i/-e: don't complain when the `*' selector doesn't match anything. In particular, `nix-env -q \*' doesn't fail anymore on an empty profile.
2007-10-29 * Make the `--prebuilt-only' / `-b' option work not just for queriesEelco Dolstra1-14/+20
but installations/upgrades as well. So `nix-env -ub \*' will upgrade only those packages for which a substitute is available (or to be precise, it will upgrade each package to the highest version for which a substitute is available).
2007-09-18 * Ignore dangling symlinks in ~/.nix-defexpr.Eelco Dolstra1-1/+6
2007-09-17 * nix-env -qa: make the "-A" flag do the expected thing, namely followEelco Dolstra1-78/+103
the given attribute path (just as -A does with other option) (NIX-83). So you can now say $ nix-env -qa -A nixpkgs_unstable.gnome \* atk-1.12.4 esound-0.2.36 ... to see the packages in the "gnome" attribute in Nixpkgs. To *print* the attribute path, you should now use "--attr-path" / "-P" (running out of letters...).
2007-09-17 * nix-env: allow ~/.nix-defexpr to be a directory. If it is, then theEelco Dolstra1-20/+48
Nix expressions in that directory are combined into an attribute set {file1 = import file1; file2 = import file2; ...}, i.e. each Nix expression is an attribute with the file name as the attribute name. Also recurses into directories. * nix-env: removed the "--import" (-I) option which set the ~/.nix-defexpr symlink. * nix-channel: don't use "nix-env --import", instead symlink ~/.nix-defexpr/channels. So finally nix-channel --update doesn't override any default Nix expressions but combines with them. This means that you can have (say) a local Nixpkgs SVN tree and use it as a default for nix-env: $ ln -s .../path-to-nixpkgs-tree ~/.nix-defexpr/nixpkgs_svn and be subscribed to channels (including Nixpkgs) at the same time. (If there is any ambiguity, the -A flag can be used to disambiguate, e.g. "nix-env -i -A nixpkgs_svn.pan".)
2007-08-06 * Optionally warn about packages that give an assertion failure.Eelco Dolstra1-1/+1
2007-07-05 * Properly keep packages during upgrades.Eelco Dolstra1-1/+4