Skip to content

Commit f2a2ab6

Browse files
committed
feat(option-functions): add packageOption
1 parent 08a61d7 commit f2a2ab6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/option-functions.nix

+8-1
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,17 @@ in {
7272
portOption = name: default:
7373
lib.mkOption {
7474
inherit default;
75-
description = "Whether to specifiy ${name}.";
75+
description = "Whether to specify ${name}.";
7676
type = lib.types.port;
7777
};
7878

79+
packageOption = name: default:
80+
lib.mkOption {
81+
inherit default;
82+
description = "Whether to specify ${name}.";
83+
type = lib.types.package;
84+
};
85+
7986
enumOption = name: default: values:
8087
lib.mkOption {
8188
inherit default;

0 commit comments

Comments
 (0)