mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
* Backwards compatibility with old user environment manifests.
This commit is contained in:
parent
4bd5cdb90b
commit
24737f279e
2 changed files with 8 additions and 4 deletions
|
@ -44,6 +44,7 @@ Int | int | Expr |
|
||||||
#
|
#
|
||||||
# For canonicity, the store paths should be in sorted order.
|
# For canonicity, the store paths should be in sorted order.
|
||||||
Str | string ATermList | Expr |
|
Str | string ATermList | Expr |
|
||||||
|
Str | string | Expr | ObsoleteStr
|
||||||
|
|
||||||
# A path is a reference to a file system object that is to be copied
|
# A path is a reference to a file system object that is to be copied
|
||||||
# to the Nix store when used as a derivation attribute. When it is
|
# to the Nix store when used as a derivation attribute. When it is
|
||||||
|
@ -67,7 +68,7 @@ Bool | ATerm | Expr |
|
||||||
Null | | Expr |
|
Null | | Expr |
|
||||||
|
|
||||||
Bind | string Expr Pos | ATerm |
|
Bind | string Expr Pos | ATerm |
|
||||||
Bind | string Expr | ATerm | Bind2
|
Bind | string Expr | ATerm | ObsoleteBind
|
||||||
Inherit | Expr ATermList Pos | ATerm |
|
Inherit | Expr ATermList Pos | ATerm |
|
||||||
|
|
||||||
Scope | | Expr |
|
Scope | | Expr |
|
||||||
|
|
|
@ -107,10 +107,11 @@ struct AddPos : TermFun
|
||||||
{
|
{
|
||||||
ATerm operator () (ATerm e)
|
ATerm operator () (ATerm e)
|
||||||
{
|
{
|
||||||
ATerm x, y, z;
|
ATerm x, y;
|
||||||
if (matchBind(e, x, y, z)) return e;
|
if (matchObsoleteBind(e, x, y))
|
||||||
if (matchBind2(e, x, y))
|
|
||||||
return makeBind(x, y, makeNoPos());
|
return makeBind(x, y, makeNoPos());
|
||||||
|
if (matchObsoleteStr(e, x))
|
||||||
|
return makeStr(x, ATempty);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -921,6 +922,8 @@ static void opQuery(Globals & globals,
|
||||||
else
|
else
|
||||||
table.push_back(columns);
|
table.push_back(columns);
|
||||||
|
|
||||||
|
cout.flush();
|
||||||
|
|
||||||
} catch (AssertionError & e) {
|
} catch (AssertionError & e) {
|
||||||
/* !!! hm, maybe we should give some sort of warning here? */
|
/* !!! hm, maybe we should give some sort of warning here? */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue