Add '22.nix'

This commit is contained in:
NaiJi ✨ 2022-04-17 13:29:07 +00:00
parent 504e808c98
commit 13ff8f66a9
1 changed files with 12 additions and 0 deletions

12
22.nix Normal file
View File

@ -0,0 +1,12 @@
let
myImport = import <nixpkgs> {};
x = 123;
as = { a = "foo"; b = "bar"; };
in with as; {
inherit x; #example
#fix line below: we want a and b in this scope
inherit a b;
#also fix this line
z = myImport.lib.isBool true;
}