Skip to content

Commit 2e1db4d

Browse files
committed
Tweak Python module
1 parent f30464d commit 2e1db4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/kernels/python/module.nix

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,20 @@ in
9292
{
9393
options = {
9494
kernels.python3 = mkOptions (mkOption {
95-
description = "Python 3 version";
96-
type = types.enum (
95+
example = "Python 3 version";
96+
type = types.enum (lib.unique (
9797
["python3"]
9898
++ (builtins.filter (n: builtins.match "^python3[0-9]*$" n != null) (builtins.attrNames config.pkgs))
99-
);
99+
));
100100
default = "python3";
101101
});
102102

103103
kernels.pypy3 = mkOptions (mkOption {
104-
description = "PyPy 3 version";
105-
type = types.enum (
104+
example = "PyPy 3 version";
105+
type = types.enum (lib.unique (
106106
["pypy3"]
107107
++ (builtins.filter (n: builtins.match "^pypy3[0-9]*$" n != null) (builtins.attrNames config.pkgs))
108-
);
108+
));
109109
default = "pypy3";
110110
});
111111
};

0 commit comments

Comments
 (0)