+6
-4
lib/options.nix
+6
-4
lib/options.nix
······Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.···defaultValue = attrByPath default' (throw "${defaultText} cannot be found in ${pkgsText}") pkgs;···
+3
lib/tests/modules.sh
+3
lib/tests/modules.sh
···checkConfigOutput '^"hello"$' config.nullablePackageWithDefault.pname ./declare-mkPackageOption.nixcheckConfigOutput '^"myPkgs\.hello"$' options.packageWithPkgsText.defaultText.text ./declare-mkPackageOption.nixcheckConfigOutput '^"hello-other"$' options.packageFromOtherSet.default.pname ./declare-mkPackageOption.nix+checkConfigOutput '^"hello"$' config.packageInvalidIdentifier.pname ./declare-mkPackageOption.nix+checkConfigOutput '^"pkgs\.\\"123\\"\.\\"with\\\\\\"quote\\"\.hello"$' options.packageInvalidIdentifier.defaultText.text ./declare-mkPackageOption.nix+checkConfigOutput '^"pkgs\.\\"123\\"\.\\"with\\\\\\"quote\\"\.hello"$' options.packageInvalidIdentifierExample.example.text ./declare-mkPackageOption.nix
+14
lib/tests/modules/declare-mkPackageOption.nix
+14
lib/tests/modules/declare-mkPackageOption.nix
···