mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
29 lines
554 B
C++
29 lines
554 B
C++
|
#include "util.hh"
|
||
|
#include "get-drvs.hh"
|
||
|
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
|
||
|
DrvInfos queryInstalled(EvalState & state, const Path & userEnv)
|
||
|
{
|
||
|
Path path = userEnv + "/manifest";
|
||
|
|
||
|
if (!pathExists(path))
|
||
|
return DrvInfos(); /* not an error, assume nothing installed */
|
||
|
|
||
|
throw Error("not implemented");
|
||
|
#if 0
|
||
|
Expr e = ATreadFromNamedFile(path.c_str());
|
||
|
if (!e) throw Error(format("cannot read Nix expression from `%1%'") % path);
|
||
|
|
||
|
DrvInfos elems;
|
||
|
// !!! getDerivations(state, e, "", ATermMap(1), elems);
|
||
|
return elems;
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|