nix: format test fixtures via nix fmt
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia9c1e9b0a8cd9c6d834f153609baa5426a6a6964
This commit is contained in:
parent
e8dd09c5b4
commit
b49044c9a5
15 changed files with 132 additions and 73 deletions
|
|
@ -2,16 +2,19 @@
|
|||
let
|
||||
x = 10;
|
||||
y = 20;
|
||||
attrs = { a = 1; b = 2; c = 3; };
|
||||
in
|
||||
{
|
||||
# Basic inherit from outer scope
|
||||
inherit x y;
|
||||
attrs = {
|
||||
a = 1;
|
||||
b = 2;
|
||||
c = 3;
|
||||
};
|
||||
in {
|
||||
# Basic inherit from outer scope
|
||||
inherit x y;
|
||||
|
||||
# Inherit from expression
|
||||
inherit (attrs) a b;
|
||||
# Inherit from expression
|
||||
inherit (attrs) a b;
|
||||
|
||||
# Mixed
|
||||
z = 30;
|
||||
inherit (attrs) c;
|
||||
}
|
||||
# Mixed
|
||||
z = 30;
|
||||
inherit (attrs) c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue