Fix build for new nixUnstable
This commit is contained in:
parent
91f895b3d6
commit
114f8a26ee
|
@ -69,7 +69,7 @@ LDFLAGS="$LDFLAGS -L$nix/lib"
|
||||||
|
|
||||||
AC_CHECK_HEADER([store-api.hh], [:],
|
AC_CHECK_HEADER([store-api.hh], [:],
|
||||||
[AC_MSG_ERROR([Nix headers not found; please install Nix or check the `--with-nix' option.])])
|
[AC_MSG_ERROR([Nix headers not found; please install Nix or check the `--with-nix' option.])])
|
||||||
AC_CHECK_LIB([nixexpr], [_ZN3nix9EvalState8evalFileERKSsRNS_5ValueE], [:],
|
AC_CHECK_LIB([nixexpr], [_ZN3nix9EvalStateC1ERKSt4listISsSaISsEE], [:],
|
||||||
[AC_MSG_ERROR([Nix library not found; please install Nix or check the `--with-nix' option.])])
|
[AC_MSG_ERROR([Nix library not found; please install Nix or check the `--with-nix' option.])])
|
||||||
|
|
||||||
CPPFLAGS="$old_CPPFLAGS"
|
CPPFLAGS="$old_CPPFLAGS"
|
||||||
|
|
|
@ -233,7 +233,16 @@ void run(Strings args)
|
||||||
$NIX_PATH. */
|
$NIX_PATH. */
|
||||||
unsetenv("NIX_PATH");
|
unsetenv("NIX_PATH");
|
||||||
|
|
||||||
EvalState state;
|
/* FIXME: hack */
|
||||||
|
Strings searchPath;
|
||||||
|
Strings args2;
|
||||||
|
for (Strings::iterator i = args.begin(); i != args.end(); ) {
|
||||||
|
string arg = *i++;
|
||||||
|
if (!parseSearchPathArg(arg, i, args.end(), searchPath))
|
||||||
|
args2.push_back(arg);
|
||||||
|
}
|
||||||
|
args = args2;
|
||||||
|
EvalState state(searchPath);
|
||||||
Path releaseExpr;
|
Path releaseExpr;
|
||||||
AutoArgs autoArgs;
|
AutoArgs autoArgs;
|
||||||
|
|
||||||
|
@ -259,8 +268,6 @@ void run(Strings args)
|
||||||
if (i == args.end()) throw UsageError("missing argument");
|
if (i == args.end()) throw UsageError("missing argument");
|
||||||
gcRootsDir = *i++;
|
gcRootsDir = *i++;
|
||||||
}
|
}
|
||||||
else if (parseSearchPathArg(arg, i, args.end(), state))
|
|
||||||
;
|
|
||||||
else if (arg[0] == '-')
|
else if (arg[0] == '-')
|
||||||
throw UsageError(format("unknown flag `%1%'") % arg);
|
throw UsageError(format("unknown flag `%1%'") % arg);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue