plugins/dap-python: set defaultText for adapterPythonPath

This commit is contained in:
Matt Sturgeon 2025-01-24 23:18:47 +00:00
parent 30c2292b29
commit 0d23003878
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -22,7 +22,10 @@ in
};
adapterPythonPath = mkOption {
default = "${pkgs.python3.withPackages (ps: with ps; [ debugpy ])}/bin/python3";
default = lib.getExe (pkgs.python3.withPackages (ps: with ps; [ debugpy ]));
defaultText = lib.literalExpression ''
lib.getExe (pkgs.python3.withPackages (ps: with ps; [ debugpy ]))
'';
description = "Path to the python interpreter. Path must be absolute or in $PATH and needs to have the debugpy package installed.";
type = types.str;
};