diff options
Diffstat (limited to 'nix.html.markdown')
| -rw-r--r-- | nix.html.markdown | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/nix.html.markdown b/nix.html.markdown index 1d5a7778..677aaf54 100644 --- a/nix.html.markdown +++ b/nix.html.markdown @@ -305,6 +305,9 @@ with builtins; [    ({x, y, ...}: x + "-" + y) { x = "a"; y = "b"; z = "c"; }    #=> "a-b" +  # The entire set can be bound to a variable using `@` +  (args@{x, y}: args.x + "-" + args.y) { x = "a"; y = "b"; } +  #=> "a-b"    #  Errors    #========================================= @@ -355,7 +358,7 @@ with builtins; [    # its contents. You can read files from anywhere. In this example,    # we write a file into the store, and then read it back out.    (let filename = toFile "foo.txt" "hello!"; in -    [filename (builtins.readFile filename)]) +    [filename (readFile filename)])    #=> [ "/nix/store/ayh05aay2anx135prqp0cy34h891247x-foo.txt" "hello!" ]    # We can also download files into the Nix store. @@ -375,6 +378,9 @@ with builtins; [  * [Susan Potter - Nix Cookbook - Nix By Example]    (https://ops.functionalalgebra.com/nix-by-example/) -   + +* [Zero to Nix - Nix Tutorial] +  (https://zero-to-nix.com/) +  * [Rommel Martinez - A Gentle Introduction to the Nix Family]    (https://web.archive.org/web/20210121042658/https://ebzzry.io/en/nix/#nix) | 
