lib.options.mkPackageOption: use lib.showAttrPath (#398066)

This commit is contained in:
Johannes Kirschbauer
2025-04-21 10:51:01 +02:00
committed by GitHub
3 changed files with 33 additions and 5 deletions

View File

@@ -57,5 +57,19 @@ in
};
in
lib.mkPackageOption myPkgs "hello" { };
packageInvalidIdentifier =
let
myPkgs."123"."with\"quote" = { inherit (pkgs) hello; };
in
lib.mkPackageOption myPkgs [ "123" "with\"quote" "hello" ] { };
packageInvalidIdentifierExample = lib.mkPackageOption pkgs "hello" {
example = [
"123"
"with\"quote"
"hello"
];
};
};
}