1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/lib/tests/modules
Robert Hensing 4a014ed92e lib/modules: Use fixed lib instead of args.lib
The practical use for this should be very limited because I don't
think anyone should change `lib`, let alone change `lib.functionArgs`,
but, but it would be even stranger to rely on `args.lib` (or really
`specialArgs.lib` for what's clearly a behavior of the current
`evalModules`, which uses its own ambient lib for basically everything.

The shadowing of `lib` by `args.lib` here seems to be a small mistake,
which is easy to make.
2024-07-03 11:16:31 +02:00
..
disable-recursive
functionTo
types-anything lib: modules.sh should check JSON output for predictability 2023-12-19 09:23:09 -08:00
adhoc-freeformType-survives-type-merge.nix
alias-with-priority-can-override.nix Avoid top-level with ...; in lib/tests/modules/alias-with-priority-can-override.nix 2024-03-11 08:37:31 -07:00
alias-with-priority.nix Avoid top-level with ...; in lib/tests/modules/alias-with-priority.nix 2024-03-11 08:38:14 -07:00
attrsOf-conditional-check.nix
attrsOf-lazy-check.nix
boolByOr.nix lib.types.boolByOr: init 2023-12-08 21:50:29 +01:00
class-check.nix lib.modules: Change class declaration in module to _class 2023-05-06 18:32:59 +02:00
declaration-positions.nix nixos/modules: Add declarationPositions 2023-09-08 11:48:40 +02:00
declare-attrsOf.nix
declare-attrsOfSub-any-enable.nix
declare-bare-submodule-deep-option-duplicate.nix
declare-bare-submodule-deep-option.nix
declare-bare-submodule-nested-option.nix
declare-bare-submodule.nix
declare-coerced-value-unsound.nix
declare-coerced-value.nix
declare-either.nix
declare-enable-nested.nix
declare-enable.nix
declare-int-between-value.nix
declare-int-positive-value-nested.nix
declare-int-positive-value.nix
declare-int-unsigned-value.nix
declare-lazyAttrsOf.nix
declare-mkPackageOption.nix lib/tests: add test for pkgsText parameter and package set selection of mkPackageOption 2023-10-10 13:13:38 +02:00
declare-oneOf.nix
declare-set.nix
declare-submodule-via-evalModules.nix
declare-submoduleWith-modules.nix
declare-submoduleWith-noshorthand.nix
declare-submoduleWith-path.nix
declare-submoduleWith-shorthand.nix
declare-submoduleWith-special.nix
declare-variants.nix
default.nix
deferred-module-error.nix
deferred-module.nix
define-_module-args-custom.nix
define-attrsOfSub-bar-enable.nix
define-attrsOfSub-bar.nix
define-attrsOfSub-foo-enable-force.nix
define-attrsOfSub-foo-enable-if.nix
define-attrsOfSub-foo-enable.nix
define-attrsOfSub-foo-force-enable.nix
define-attrsOfSub-foo-if-enable.nix
define-attrsOfSub-foo.nix
define-attrsOfSub-force-foo-enable.nix
define-attrsOfSub-if-foo-enable.nix
define-bare-submodule-values.nix
define-enable-abort.nix lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
define-enable-force.nix
define-enable-throw.nix lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
define-enable-with-custom-arg.nix
define-enable-with-top-level-mkIf.nix lib/modules: Check against importing things with a _type 2023-05-06 18:29:03 +02:00
define-enable.nix
define-force-attrsOfSub-foo-enable.nix
define-force-enable.nix
define-freeform-keywords-shorthand.nix lib/modules: Only interpret class declaration in non-shorthand mode 2023-05-06 18:29:04 +02:00
define-if-attrsOfSub-foo-enable.nix
define-module-check.nix
define-option-dependently-nested.nix
define-option-dependently.nix
define-settingsDict-a-is-b.nix
define-shorthandOnlyDefinesConfig-true.nix
define-submoduleWith-noshorthand.nix
define-submoduleWith-shorthand.nix
define-value-int-negative.nix
define-value-int-positive.nix
define-value-int-zero.nix
define-value-list.nix
define-value-string-arbitrary.nix
define-value-string-bigint.nix
define-value-string-properties.nix
define-value-string.nix
define-variant.nix
disable-declare-enable.nix
disable-define-enable-string-path.nix
disable-define-enable.nix
disable-enable-modules.nix
disable-module-bad-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
disable-module-with-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
disable-module-with-toString-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
docs.nix lib.types.attrTag: Support module docs 2024-04-04 11:54:41 +02:00
doRename-basic.nix lib/tests/modules: Test doRename 2022-11-03 13:12:58 +01:00
doRename-condition-enable.nix lib.modules.doRename: Add condition parameter 2024-02-02 07:31:16 +01:00
doRename-condition-migrated.nix lib.modules.doRename: Add condition parameter 2024-02-02 07:31:16 +01:00
doRename-condition-no-enable.nix lib.modules.doRename: Add condition parameter 2024-02-02 07:31:16 +01:00
doRename-condition.nix doc: migrate trivial files to doc-comment format (#299986) 2024-04-04 16:36:07 +02:00
doRename-warnings.nix lib/tests/modules: Test doRename 2022-11-03 13:12:58 +01:00
emptyValues.nix
error-mkOption-in-config.nix lib/modules: Test optionless module errors from #131205 2023-12-09 14:15:49 +01:00
error-mkOption-in-submodule-config.nix lib/modules: Test optionless module errors from #131205 2023-12-09 14:15:49 +01:00
error-nonEmptyListOf-submodule.nix feat: add test for nonEmptyListOf submodule 2024-01-30 21:32:34 +03:00
extendModules-168767-imports.nix Avoid top-level with ...; in lib/tests/modules/extendModules-168767-imports.nix 2024-03-11 08:38:37 -07:00
freeform-attrsOf.nix
freeform-lazyAttrsOf.nix
freeform-nested.nix
freeform-str-dep-unstr.nix
freeform-submodules.nix
freeform-unstr-dep-str.nix
gvariant.nix lib.gvariant: make the tests really work 2023-09-28 16:30:05 +02:00
import-configuration.nix lib/modules: Improve error when a configuration is imported 2023-05-06 18:29:03 +02:00
import-custom-arg.nix
import-from-store.nix
merge-module-with-key.nix lib/modules: Allow an "anonymous" module with key in disabledModules 2023-03-01 15:03:44 +01:00
merge-typeless-option.nix lib/modules: handle typeless options in mergeModules 2023-07-26 23:58:04 +02:00
module-argument-default.nix lib/tests/modules: Test that _module.args works when a default argument is set 2023-07-12 21:54:57 +02:00
module-class-is-darwin.nix lib.modules: Change class declaration in module to _class 2023-05-06 18:32:59 +02:00
module-class-is-nixos.nix lib.modules: Change class declaration in module to _class 2023-05-06 18:32:59 +02:00
module-imports-_type-check.nix lib/modules: Check against importing things with a _type 2023-05-06 18:29:03 +02:00
options-type-error-configuration.nix lib/modules: Report a good error when option tree has bare type 2023-08-14 10:44:56 +02:00
options-type-error-typical-nested.nix lib/modules: Report a good error when option tree has bare type 2023-08-14 10:44:56 +02:00
options-type-error-typical.nix lib/modules: Report a good error when option tree has bare type 2023-08-14 10:44:56 +02:00
optionTypeFile.nix
optionTypeMerging.nix
raw.nix lib: modules.sh should check JSON output for predictability 2023-12-19 09:23:09 -08:00
shorthand-meta.nix
specialArgs-lib.nix lib/modules: Use fixed lib instead of args.lib 2024-07-03 11:16:31 +02:00
submoduleFiles.nix
test-mergeAttrDefinitionsWithPrio.nix lib.modules: Add mergeAttrDefinitionsWithPrio 2023-06-16 22:08:16 +02:00
types-attrTag-wrong-decl.nix lib.types.attrTag: Custom error when passing bare type 2024-04-04 11:54:46 +02:00
types-attrTag.nix lib.types.attrTag: Fix declarationPositions after merge 2024-04-04 12:56:56 +02:00
types-unique.nix lib.types.unique: Check inner type deeply 2024-01-28 14:09:27 +01:00
types.nix lib/tests: invalidate hashes 2023-07-05 11:31:58 +02:00