about summary refs log tree commit diff
path: root/src/nix-env/user-env.cc
blob: 0e1fce650ca4a4a41edb99eb2f83a8c654de6651 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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
}


}