Loading ci/default.nix +0 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,6 @@ let # Rule names can currently be looked up here: # https://github.com/nix-community/nixd/blob/main/libnixf/src/Basic/diagnostic.py # TODO: Remove the following and fix things. "--ignore=parse-redundant-paren" "--ignore=sema-unused-def-lambda-noarg-formal" "--ignore=sema-unused-def-lambda-witharg-arg" "--ignore=sema-unused-def-lambda-witharg-formal" Loading doc/doc-support/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ stdenvNoCC.mkDerivation ( decl: let declStr = toString decl; root = toString (../..); root = toString ../..; subpath = lib.removePrefix "/" (lib.removePrefix root declStr); in if lib.hasPrefix root declStr then Loading lib/customisation.nix +1 −1 Original line number Diff line number Diff line Loading @@ -396,7 +396,7 @@ rec { outputs = drv.outputs or [ "out" ]; commonAttrs = drv // (listToAttrs outputsList) // ({ all = map (x: x.value) outputsList; }) // passthru; drv // (listToAttrs outputsList) // { all = map (x: x.value) outputsList; } // passthru; outputToAttrListElement = outputName: { name = outputName; Loading lib/tests/modules/composed-types-valueMeta.nix +6 −6 Original line number Diff line number Diff line Loading @@ -26,29 +26,29 @@ in { imports = [ # Module A ({ { options.attrsOfModule = attrsOfModule; options.mergedAttrsOfModule = attrsOfModule; options.listOfModule = listOfModule; options.mergedListOfModule = listOfModule; }) } # Module B ({ { options.mergedAttrsOfModule = attrsOfModule; options.mergedListOfModule = listOfModule; }) } # Values # It is important that the value is defined in a separate module # Without valueMeta the actual value and sub-options wouldn't be accessible via: # options.attrsOfModule.type.getSubOptions ({ { attrsOfModule = { foo.bar = 42; }; mergedAttrsOfModule = { foo.bar = 42; }; }) } ( { options, ... }: { Loading lib/tests/modules/freeform-attrsof-either.nix +2 −2 Original line number Diff line number Diff line Loading @@ -4,9 +4,9 @@ let in { options.number = mkOption { type = types.submodule ({ type = types.submodule { freeformType = types.attrsOf (types.either types.int types.int); }); }; default = { int = 42; }; # should not emit a warning Loading Loading
ci/default.nix +0 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,6 @@ let # Rule names can currently be looked up here: # https://github.com/nix-community/nixd/blob/main/libnixf/src/Basic/diagnostic.py # TODO: Remove the following and fix things. "--ignore=parse-redundant-paren" "--ignore=sema-unused-def-lambda-noarg-formal" "--ignore=sema-unused-def-lambda-witharg-arg" "--ignore=sema-unused-def-lambda-witharg-formal" Loading
doc/doc-support/package.nix +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ stdenvNoCC.mkDerivation ( decl: let declStr = toString decl; root = toString (../..); root = toString ../..; subpath = lib.removePrefix "/" (lib.removePrefix root declStr); in if lib.hasPrefix root declStr then Loading
lib/customisation.nix +1 −1 Original line number Diff line number Diff line Loading @@ -396,7 +396,7 @@ rec { outputs = drv.outputs or [ "out" ]; commonAttrs = drv // (listToAttrs outputsList) // ({ all = map (x: x.value) outputsList; }) // passthru; drv // (listToAttrs outputsList) // { all = map (x: x.value) outputsList; } // passthru; outputToAttrListElement = outputName: { name = outputName; Loading
lib/tests/modules/composed-types-valueMeta.nix +6 −6 Original line number Diff line number Diff line Loading @@ -26,29 +26,29 @@ in { imports = [ # Module A ({ { options.attrsOfModule = attrsOfModule; options.mergedAttrsOfModule = attrsOfModule; options.listOfModule = listOfModule; options.mergedListOfModule = listOfModule; }) } # Module B ({ { options.mergedAttrsOfModule = attrsOfModule; options.mergedListOfModule = listOfModule; }) } # Values # It is important that the value is defined in a separate module # Without valueMeta the actual value and sub-options wouldn't be accessible via: # options.attrsOfModule.type.getSubOptions ({ { attrsOfModule = { foo.bar = 42; }; mergedAttrsOfModule = { foo.bar = 42; }; }) } ( { options, ... }: { Loading
lib/tests/modules/freeform-attrsof-either.nix +2 −2 Original line number Diff line number Diff line Loading @@ -4,9 +4,9 @@ let in { options.number = mkOption { type = types.submodule ({ type = types.submodule { freeformType = types.attrsOf (types.either types.int types.int); }); }; default = { int = 42; }; # should not emit a warning Loading