1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

* In nix-instantiate, allow us to specify a "path" to the

derivation(s) we're interested, e.g.,

    $ nix-instantiate ./all-packages.nix --attr xlibs.libX11

  List elements can also be selected:

    $ nix-instantiate ./build-for-release.nix --attr 0.subversion

  This allows a non-ambiguous specification of a derivation.  Of
  course, this should also be added to nix-env and nix-build.
This commit is contained in:
Eelco Dolstra 2006-02-10 17:25:59 +00:00
parent b505f9eaf5
commit c6120352b3
3 changed files with 94 additions and 38 deletions

View file

@ -58,7 +58,8 @@ typedef list<DrvInfo> DrvInfos;
Otherwise, return false. */
bool getDerivation(EvalState & state, Expr e, DrvInfo & drv);
void getDerivations(EvalState & state, Expr e, DrvInfos & drvs);
void getDerivations(EvalState & state, Expr e, DrvInfos & drvs,
const string & attrPath = "");
#endif /* !__GET_DRVS_H */