diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-04-25 16:16:51 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-04-25 16:16:51 +0200 |
commit | 468e33e7926897756acfe0d483633fb36949ebc5 (patch) | |
tree | b0bc6f5a62532028d6f2eb4616d16fb23ea6db04 /Nix Inherit.md | |
parent | c9a730e5b363a10639309c81dab838232ee434b6 (diff) | |
parent | 80325cced8485df9d87c1b5d9f5d123d85b01336 (diff) |
vault backup: 2025-04-25 16:16:51
Diffstat (limited to 'Nix Inherit.md')
-rw-r--r-- | Nix Inherit.md | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Nix Inherit.md b/Nix Inherit.md deleted file mode 100644 index 4a8adb0..0000000 --- a/Nix Inherit.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -tags: - - nix-lang ---- -```nix -let x = 123; in -{ - inherit x; - y = 456; -} -``` -== -```nix -let x = 123; in -{ - x = x; - y = 456; -} -``` - -Can reference set -```nix -inherit (src-set) a b c; -``` -== -```nix -a = src-set.a; b = src-set.b; c = src-set.c; -```
\ No newline at end of file |