Fix building against the latest Nix

This commit is contained in:
Eelco Dolstra 2014-04-08 17:08:09 +02:00
parent d087aeb0d9
commit 4aa01e021e
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,8 @@ AC_PROG_LN_S
AC_PROG_LIBTOOL
AC_PROG_CXX
CXXFLAGS+=" -std=c++0x"
dnl Optional dependencies to build the manual, normally not needed
dnl since the tarball comes with the PDF and HTML manuals.
AC_PATH_PROG([DBLATEX], [dblatex])

View file

@ -156,7 +156,7 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc,
if (a == v.attrs->end())
throw EvalError("derivation must have a constituents attribute");
PathSet context;
state.coerceToString(*a->value, context, true, false);
state.coerceToString(*a->pos, *a->value, context, true, false);
PathSet drvs;
foreach (PathSet::iterator, i, context)
if (i->at(0) == '!') {