aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env
AgeCommit message (Collapse)Author
2006-08-23* Allow --arg in nix-env as well, example:Eelco Dolstra
$ nix-env -qa --system-filter \* --arg system '"powerpc-darwin"' to override the system from the default value (__currentSystem in all-packages.nix).
2006-08-16* `nix-instantiate --{eval|parse}-only --xml': print an XMLEelco Dolstra
representation instead of an ATerm. * Indent XML output.
2006-08-09* Fix the help message wrt --attr.Eelco Dolstra
2006-08-07* Workaround for a bug (?) in GCC 2.95.Eelco Dolstra
2006-08-03* `nix-env -q --xml': show query result in XML format for easierEelco Dolstra
automated processing.
2006-07-28* `nix-instantiate ... --arg NAME VALUE': allow arguments to be passedEelco Dolstra
to functions from the command line. * nix-build: started removing backticks.
2006-07-26* Refactoring: get the selection path stuff out of getDerivations()Eelco Dolstra
and put it into a separate function findAlongAttrPath().
2006-07-25* Applied rbroek's patch from the branch atEelco Dolstra
https://svn.cs.uu.nl:12443/repos/trace/buildfarm-control/trunk/ext/nix/, with some modifications. This allows `nix-env -qa' to show the attribute path that can be used to unambiguously install a package using `nix-env -i -A'. Example: $ nix-env -f top-level/all-packages.nix -qaA subversion xorg-server subversionWithJava subversion-1.2.3 subversion subversion-1.3.2 subversion14 subversion-1.4.0pre-rc1 xorg.xorgserver xorg-server-1.1.0
2006-07-25* Support the --attr / -A flag in nix-env as well. So now we can do,Eelco Dolstra
e.g., $ nix-env -i -A subversion xorg.xorgserver The main advantage over using symbolic names is that using attribute names is unambiguous and much, much faster.
2006-06-27* `nix-env --upgrade --eq': only upgrade if the old version is equalEelco Dolstra
to the new version. This is actually useful.
2006-06-15* In `nix-env -i|-u|-e', lock the profile to prevent races betweenEelco Dolstra
concurrent nix-env operations on the same profile. Fixes NIX-7.
2006-05-12* Support for srcdir != builddir (NIX-41).Eelco Dolstra
2006-05-11* 64-bit compatibility fixes (for problems revealed by building on an AthlonEelco Dolstra
64 running 64-bit SUSE). A patched ATerm library is required to run Nix succesfully.
2006-05-04* Use the new ATermMap.Eelco Dolstra
2006-05-02* Huge reduction in memory use (2/3 or so on large nix-env -qasEelco Dolstra
operations): share ATermMaps between DrvInfos.
2006-03-10* `nix-env -qa --description' shows human-readable descriptions ofEelco Dolstra
packages (provided that they have a `meta.description' attribute). E.g., $ ./src/nix-env/nix-env -qa --description gcc gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for sparc-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for mips-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for arm-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x
2006-03-10* `nix-env -q' now accepts arguments that allow specific derivationsEelco Dolstra
to be queried, e.g., `nix-env -qa firefox'. This does require the argument '*' to be passed if one wants information about all derivations, so the old `nix-env -qa' now is `nix-env -qa "*"'.
2006-03-08* When obtaining derivations from Nix expressions, ignore allEelco Dolstra
expressions that cause an assertion failure (like `assert system == "i686-linux"'). This allows all-packages.nix in Nixpkgs to be used on all platforms, even if some Nix expressions don't work on all platforms. Not sure if this is a good idea; it's a bit hacky. In particular, due to laziness some derivations might appear in `nix-env -qa' but disappear in `nix-env -qas' or `nix-env -i'. Commit 5000!
2006-03-06* `nix-env (-i|-u) --dry-run' now shows exactly which missing pathsEelco Dolstra
will be built or substituted.
2006-03-06* Regularise help text a bit.Eelco Dolstra
2006-03-01* db.hh shouldn't depend on the Berkeley DB headers.Eelco Dolstra
2006-02-17* In "nix-env -i", print a warning if there are multiple derivationsEelco Dolstra
with the same name *and* version number, and pick the first one (this means that the order in which channels appear in ~/.nix-channels matters). E.g.: $ nix-env ii aterm warning: there are multiple derivations named `aterm-2.4.2'; using the first one installing `aterm-2.4.2'
2006-02-17* Fix for NIX-31: "nix-env -i foo" installing all derivations namedEelco Dolstra
foo. Now it will only install the one with the highest version number.
2006-02-17* Fix the infamous NIX-17: nix-env -i prints misleading messagesEelco Dolstra
("installing `foo'" followed by "uninstalling `foo'").
2006-02-08* Oops, fix breakage.Eelco Dolstra
2006-02-08* Refactoring: move derivation evaluation to libexpr.Eelco Dolstra
2006-02-01* The "S" bit should be based on the output path, not the derivation path.Eelco Dolstra
2006-01-26* Oops, the "I" bit in "nix-env -qas" was broken. Reported by Nicolae Vintila.Eelco Dolstra
2005-12-24* Documentation fixes.Eelco Dolstra
2005-10-06* Swap the system and version comparion columns.Eelco Dolstra
2005-10-06* Only colorise if we are attached to a terminal.Eelco Dolstra
2005-10-06* New query option: `--compare-versions' or `-c' to compare installedEelco Dolstra
versions to available versions, or vice versa. For example, the following compares installed versions to available versions: $ nix-env -qc autoconf-2.59 = 2.59 automake-1.9.4 < 1.9.6 f-spot-0.0.10 - ? firefox-1.0.4 < 1.0.7 ... I.e., there are newer versions available (in the current default Nix expression) for Automake and Firefox, but not for Autoconf, and F-Spot is missing altogether. Conversely, the available versions can be compared to the installed versions: $ nix-env -qac autoconf-2.59 = 2.59 automake-1.9.6 > 1.9.4 bash-3.0 - ? firefox-1.0.7 > 1.0.4 ... Note that bash is available but no version of it is installed. If multiple versions are available for comparison, then the highest is used. E.g., if Subversion 1.2.0 is installed, and Subversion 1.1.4 and 1.2.3 are available, then `nix-env -qc' will print `< 1.2.3', not `> 1.1.4'. If higher versions are available, the version column is printed in red (using ANSI escape codes).
2005-09-01* `nix-env -e' corrupts memory due to incorrect use of iterators.Eelco Dolstra
Reported by Rob Vermaas.
2005-07-22* Build dynamic libraries.Eelco Dolstra
2005-05-09* Handle store path arguments in `nix-env -i' correctly again.Eelco Dolstra
2005-05-08* Lazily compute the derivation and output paths of derivations. ThisEelco Dolstra
makes most query and installation operations much faster (e.g., `nix-env -qa' on the current Nixpkgs is about 10 times faster).
2005-05-04* Include some required header files.Eelco Dolstra
2005-02-17* Compatibility hack with older user environments.Eelco Dolstra
2005-02-15* Compatibility with older GCCs.Eelco Dolstra
2005-02-15* And yet another installation source: the ability to copy userEelco Dolstra
environment elements from one user environment to another, e.g., $ nix-env -i --from-profile /nix/var/nix/profiles/other-profile aterm copies the `aterm' component installed in the `other-profile' to the user's current profile.
2005-02-14* It is now possible to add store derivations or paths directly to aEelco Dolstra
user environment, e.g., $ nix-env -i /nix/store/z58v41v21xd3ywrqk1vmvdwlagjx7f10-aterm-2.3.1.drv or $ nix-env -i /nix/store/hsyj5pbn0d9iz7q0aj0fga7cpaadvp1l-aterm-2.3.1 This is useful because it allows Nix expressions to be bypassed entirely. For instance, if only a nix-pull manifest is provided, plus the top-level path of some component, it can be installed without having to supply the Nix expression (e.g., for obfuscation, or to be independent of Nix expression language changes or context dependencies).
2005-02-14* Added an installation source `--from-expression' (or `-E') toEelco Dolstra
install derivations from a Nix expression specified on the command line. This is particularly useful for disambiguation if there are multiple derivations with the same name. For instance, in Nixpkgs, to install the Firefox wrapper rather than the plain Firefox component: $ nix-env -f .../i686-linux.nix -i -E 'x: x.firefoxWrapper' The Nix expressions should be functions to which the default Nix expression (in this case, `i686-linux.nix') is passed, hence `x: ...'. This might also be a nice way to deal with high-level (user-level) variability, e.g., $ nix-env -f ./server.nix -i -E 'x: x {port = 8080; ssl = false;}'
2005-02-14* Refactoring. Hope this doesn't break the semantics of `-u' ;-)Eelco Dolstra
2005-02-14* Global configuration option `env-keep-derivations' to store pointerEelco Dolstra
to derivations in user environments. Nice for developers (since it prevents build-time-only dependencies from being GC'ed, in conjunction with `gc-keep-outputs'). Turned off by default.
2005-02-14* Don't keep the derivation symlink when creating profile generations.Eelco Dolstra
2005-02-11* Refactoring to support different installation sources in nix-env.Eelco Dolstra
* Set the references for the user environment manifest properly. * Don't copy the manifest (this was accidental). * Don't store derivation paths in the manifest (maybe this should be made optional). This cleans up the semantics of nix-env, which were weird. * Hash on the output paths of activated components, not on derivation paths. This is because we don't know the derivation path of already installed components anymore, and it allows the installation of components by store path (skipping Nix expressions entirely). * Query options `--out-path' and `--drv-path' to show the output and derivation paths of components, respectively (the latter replaces the `--expr' query).
2005-01-27* Fix and simplify the garbage collector (it's still not concurrent,Eelco Dolstra
though). In particular it's now much easier to register a GC root. Just place a symlink to whatever store path it is that you want to keep in /nix/var/nix/gcroots.
2005-01-25* Maintain the references/referers relation also for derivations.Eelco Dolstra
This simplifies garbage collection and `nix-store --query --requisites' since we no longer need to treat derivations specially. * Better maintaining of the invariants, e.g., setReferences() can only be called on a valid/substitutable path.
2005-01-19* Renamed `normalise.cc' -> `build.cc', `storeexprs.cc' ->Eelco Dolstra
`derivations.cc', etc. * Store the SHA-256 content hash of store paths in the database after they have been built/added. This is so that we can check whether the store has been messed with (a la `rpm --verify'). * When registering path validity, verify that the closure property holds.
2005-01-19* `nix-store --build' now builds its arguments in parallel instead ofEelco Dolstra
sequentially (within the limits set by `--jobs'). This should greatly improve the utilisation of the build farm when doing Nixpkgs builds.