forked from lix-project/lix
* Remove those storePath attribute sets, we don't need 'em.
This commit is contained in:
parent
e5678b3435
commit
4b66cebe7b
|
@ -170,18 +170,7 @@ static void processBinding(EvalState & state, Expr e, Derivation & drv,
|
||||||
ss.push_back(outPath);
|
ss.push_back(outPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (a && evalString(state, a) == "storePath") {
|
else throw TypeError("attribute sets in derivations must be derivations");
|
||||||
|
|
||||||
a = queryAttr(e, "outPath");
|
|
||||||
if (!a) throw EvalError("output path missing");
|
|
||||||
/* !!! supports only single output path */
|
|
||||||
Path outPath = evalPath(state, a);
|
|
||||||
|
|
||||||
drv.inputSrcs.insert(outPath);
|
|
||||||
ss.push_back(outPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
else throw TypeError("attribute sets in derivations must either be derivations or store paths");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchPath(e, s)) {
|
else if (matchPath(e, s)) {
|
||||||
|
|
|
@ -192,12 +192,7 @@ static void createUserEnv(EvalState & state, const DrvInfos & elems,
|
||||||
makeBind(toATerm("derivations"),
|
makeBind(toATerm("derivations"),
|
||||||
makeList(ATreverse(inputs)), makeNoPos()),
|
makeList(ATreverse(inputs)), makeNoPos()),
|
||||||
makeBind(toATerm("manifest"),
|
makeBind(toATerm("manifest"),
|
||||||
makeAttrs(ATmakeList2(
|
makePath(toATerm(manifestFile)), makeNoPos())
|
||||||
makeBind(toATerm("type"),
|
|
||||||
makeStr(toATerm("storePath")), makeNoPos()),
|
|
||||||
makeBind(toATerm("outPath"),
|
|
||||||
makePath(toATerm(manifestFile)), makeNoPos())
|
|
||||||
)), makeNoPos())
|
|
||||||
)));
|
)));
|
||||||
|
|
||||||
/* Instantiate it. */
|
/* Instantiate it. */
|
||||||
|
|
Loading…
Reference in a new issue