adambard / adambard/learnxinyminutes-docs

[Nix] A handful of missing features

Open
#2,328 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Markdown
Stars
12.3k
Forks
3.7k
Avg merge
13h 10m
Merged PRs (30d)
6

Description

Here's my to-do list for Nix (things I didn't include because I didn't know about them when I first wrote the tutorial):
- You can use interpolation inside a dotted expression, e.g. `nixpkgs.pkgs.haskell.packages.${compiler}.callPackage`
- Inherit, e.g. `inherit a b;` and `inherit (foo) a b;`
- You can use `inherit` in `let` binding context as well as in sets
- `@`-patterns similar to Haskell pattern matching. For example, in a function definition: `f = args @ {x, y, z}: ...;`
- `or` can be used to provide a default value when pulling a value out of a set, e.g. `x.y or "defaultY"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.