8 package = lib.mkPackageOption pkgs "hello" { };
10 namedPackage = lib.mkPackageOption pkgs "Hello" {
11 default = [ "hello" ];
14 namedPackageSingletonDefault = lib.mkPackageOption pkgs "Hello" {
18 pathPackage = lib.mkPackageOption pkgs [ "hello" ] { };
20 packageWithExample = lib.mkPackageOption pkgs "hello" {
21 example = "pkgs.hello.override { stdenv = pkgs.clangStdenv; }";
24 packageWithPathExample = lib.mkPackageOption pkgs "hello" {
25 example = [ "hello" ];
28 packageWithExtraDescription = lib.mkPackageOption pkgs "hello" {
29 extraDescription = "Example extra description.";
32 undefinedPackage = lib.mkPackageOption pkgs "hello" {
36 nullablePackage = lib.mkPackageOption pkgs "hello" {
41 nullablePackageWithDefault = lib.mkPackageOption pkgs "hello" {
45 packageWithPkgsText = lib.mkPackageOption pkgs "hello" {
49 packageFromOtherSet = let myPkgs = {
50 hello = pkgs.hello // { pname = "hello-other"; };
51 }; in lib.mkPackageOption myPkgs "hello" { };