···757757 matchAttrs :: AttrSet -> AttrSet -> Bool
758758 */
759759 matchAttrs =
760760- # Attribute set strucutre to match
760760+ # Attribute set structure to match
761761 pattern:
762762 # Attribute set to find patterns in
763763 attrs:
+1-1
lib/derivations.nix
···1717 situations below.
18181919 For illustration and/or testing, we define derivation such that its
2020- evaluation is very noticable.
2020+ evaluation is very noticeable.
21212222 let derivation = throw "This won't be evaluated.";
2323
+1-1
lib/modules.nix
···479479 ) (lib.functionArgs f);
480480481481 # Note: we append in the opposite order such that we can add an error
482482- # context on the explicited arguments of "args" too. This update
482482+ # context on the explicit arguments of "args" too. This update
483483 # operator is used to make the "args@{ ... }: with args.lib;" notation
484484 # works.
485485 in f (args // extraArgs)
+2-2
lib/strings.nix
···185185 */
186186 makeBinPath = makeSearchPathOutput "bin" "bin";
187187188188- /* Normalize path, removing extranous /s
188188+ /* Normalize path, removing extraneous /s
189189190190 Type: normalizePath :: string -> string
191191···330330 */
331331 escape = list: replaceStrings list (map (c: "\\${c}") list);
332332333333- /* Escape occurence of the element of `list` in `string` by
333333+ /* Escape occurrence of the element of `list` in `string` by
334334 converting to its ASCII value and prefixing it with \\x.
335335 Only works for printable ascii characters.
336336
+1-1
lib/systems/architectures.nix
···6767 #
6868 # Note:
6969 #
7070- # - The succesors of `skylake` (`cannonlake`, `icelake`, etc) use `avx512`
7070+ # - The successors of `skylake` (`cannonlake`, `icelake`, etc) use `avx512`
7171 # which no current AMD Zen michroarch support.
7272 # - `znver1` uses `ABM`, `CLZERO`, `CX16`, `MWAITX`, and `SSE4A` which no
7373 # current Intel microarch support.
+2-2
lib/systems/default.nix
···2020 # necessary.
2121 #
2222 # `parsed` is inferred from args, both because there are two options with one
2323- # clearly prefered, and to prevent cycles. A simpler fixed point where the RHS
2323+ # clearly preferred, and to prevent cycles. A simpler fixed point where the RHS
2424 # always just used `final.*` would fail on both counts.
2525 elaborate = args': let
2626 args = if lib.isString args' then { system = args'; }
···6262 linker =
6363 /**/ if final.useLLVM or false then "lld"
6464 else if final.isDarwin then "cctools"
6565- # "bfd" and "gold" both come from GNU binutils. The existance of Gold
6565+ # "bfd" and "gold" both come from GNU binutils. The existence of Gold
6666 # is why we use the more obscure "bfd" and not "binutils" for this
6767 # choice.
6868 else "bfd";
+1-1
lib/systems/flake-systems.nix
···11# See [RFC 46] for mandated platform support and ../../pkgs/stdenv for
22# implemented platform support. This list is mainly descriptive, i.e. all
33-# system doubles for platforms where nixpkgs can do native compiliation
33+# system doubles for platforms where nixpkgs can do native compilation
44# reasonably well are included.
55#
66# [RFC 46]: https://github.com/NixOS/rfcs/blob/master/rfcs/0046-platform-support-tiers.md
+1-1
lib/tests/modules.sh
···246246## Freeform modules
247247# Assigning without a declared option should work
248248checkConfigOutput '^"24"$' config.value ./freeform-attrsOf.nix ./define-value-string.nix
249249-# No freeform assigments shouldn't make it error
249249+# No freeform assignments shouldn't make it error
250250checkConfigOutput '^{ }$' config ./freeform-attrsOf.nix
251251# but only if the type matches
252252checkConfigError 'A definition for option .* is not of type .*' config.value ./freeform-attrsOf.nix ./define-value-list.nix