Skip to content

Commit

Permalink
Tweak Python module
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Sep 25, 2024
1 parent f30464d commit 2e1db4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/kernels/python/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,20 @@ in
{
options = {
kernels.python3 = mkOptions (mkOption {
description = "Python 3 version";
type = types.enum (
example = "Python 3 version";
type = types.enum (lib.unique (
["python3"]
++ (builtins.filter (n: builtins.match "^python3[0-9]*$" n != null) (builtins.attrNames config.pkgs))
);
));
default = "python3";
});

kernels.pypy3 = mkOptions (mkOption {
description = "PyPy 3 version";
type = types.enum (
example = "PyPy 3 version";
type = types.enum (lib.unique (
["pypy3"]
++ (builtins.filter (n: builtins.match "^pypy3[0-9]*$" n != null) (builtins.attrNames config.pkgs))
);
));
default = "pypy3";
});
};
Expand Down

0 comments on commit 2e1db4d

Please sign in to comment.