solutions/A Tour of Nix/22.nix

12 lines
244 B
Nix
Raw Normal View History

2024-04-16 19:13:00 -04:00
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;
}