mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add "nix search" command
This commit is contained in:
parent
3162ad5ff4
commit
90825dea51
9 changed files with 263 additions and 102 deletions
|
@ -56,9 +56,10 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
|
|||
state.mkAttrs(v, 16);
|
||||
|
||||
mkString(*state.allocAttr(v, state.sType), "derivation");
|
||||
mkString(*state.allocAttr(v, state.sName), i.name);
|
||||
if (!i.system.empty())
|
||||
mkString(*state.allocAttr(v, state.sSystem), i.system);
|
||||
mkString(*state.allocAttr(v, state.sName), i.queryName());
|
||||
auto system = i.querySystem();
|
||||
if (!system.empty())
|
||||
mkString(*state.allocAttr(v, state.sSystem), system);
|
||||
mkString(*state.allocAttr(v, state.sOutPath), i.queryOutPath());
|
||||
if (drvPath != "")
|
||||
mkString(*state.allocAttr(v, state.sDrvPath), i.queryDrvPath());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue