···240240 * to implicit typing rules, so it should work with older
241241 * parsers as well.
242242 */
243243- toYAML = {}@args: toJSON args;
243243+ toYAML = toJSON;
244244245245 withRecursion =
246246- args@{
246246+ {
247247 /* If this option is not null, the given value will stop evaluating at a certain depth */
248248 depthLimit
249249 /* If this option is true, an error will be thrown, if a certain given depth is exceeded */
···287287 allowPrettyValues ? false,
288288 /* If this option is true, the output is indented with newlines for attribute sets and lists */
289289 multiline ? true
290290- }@args:
290290+ }:
291291 let
292292 go = indent: v: with builtins;
293293 let isPath = v: typeOf v == "path";
+1-9
lib/modules.nix
···1212 concatStringsSep
1313 elem
1414 filter
1515- findFirst
1615 foldl'
1716 getAttrFromPath
1817 head
···3433 recursiveUpdate
3534 reverseList sort
3635 setAttrByPath
3737- toList
3836 types
3937 warnIf
4038 zipAttrsWith
···4644 showFiles
4745 showOption
4846 unknownModule
4949- literalExpression
5047 ;
51485249 showDeclPrefix = loc: decl: prefix:
···604601 }
605602 else
606603 let
607607- firstNonOption = findFirst (m: !isOption m.options) "" decls;
608604 nonOptions = filter (m: !isOption m.options) decls;
609605 in
610606 throw "The option `${showOption loc}' in module `${(lib.head optionDecls)._file}' would be a parent of the following options, but its type `${(lib.head optionDecls).options.type.description or "<no description>"}' does not support nested options.\n${
···652648 'opts' is a list of modules. Each module has an options attribute which
653649 correspond to the definition of 'loc' in 'opt.file'. */
654650 mergeOptionDecls =
655655- let
656656- coerceOption = file: opt:
657657- if isFunction opt then setDefaultModuleLocation file opt
658658- else setDefaultModuleLocation file { options = opt; };
659659- in loc: opts:
651651+ loc: opts:
660652 foldl' (res: opt:
661653 let t = res.type;
662654 t' = opt.options.type;
···7272 sha256 = args.cargoSha256;
7373 } // depsExtraArgs);
74747575- # If we have a cargoSha256 fixed-output derivation, validate it at build time
7676- # against the src fixed-output derivation to check consistency.
7777- validateCargoDeps = args ? cargoHash || args ? cargoSha256;
7878-7975 target = rust.toRustTargetSpec stdenv.hostPlatform;
8076 targetIsJSON = lib.hasSuffix ".json" target;
8177 useSysroot = targetIsJSON && !__internal_dontAddSysroot;
+1-1
pkgs/build-support/src-only/default.nix
···11-{ stdenv }@orig:
11+{ stdenv }:
22# srcOnly is a utility builder that only fetches and unpacks the given `src`,
33# maybe pathings it in the process with the optional `patches` and
44# `buildInputs` attributes.
-7
pkgs/tools/misc/elfcat/Cargo.lock
···11-# This file is automatically @generated by Cargo.
22-# It is not intended for manual editing.
33-version = 3
44-55-[[package]]
66-name = "elfcat"
77-version = "0.1.8"
-7
pkgs/top-level/octave-packages.nix
···23232424makeScope newScope (self:
2525 let
2626- inherit (octave) blas lapack gfortran python texinfo gnuplot;
2727-2826 callPackage = self.callPackage;
29273028 buildOctavePackage = callPackage ../development/interpreters/octave/build-octave-package.nix {
3129 inherit lib stdenv;
3230 inherit octave;
3331 inherit computeRequiredOctavePackages;
3434- };
3535-3636- wrapOctave = callPackage ../development/interpreters/octave/wrap-octave.nix {
3737- inherit octave;
3838- inherit (pkgs) makeSetupHook makeWrapper;
3932 };
40334134 # Given a list of required Octave package derivations, get a list of