From 0d23003878d2df87647667e96450bfc39b102c21 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 24 Jan 2025 23:18:47 +0000 Subject: [PATCH] plugins/dap-python: set `defaultText` for `adapterPythonPath` --- plugins/by-name/dap/dap-python.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/by-name/dap/dap-python.nix b/plugins/by-name/dap/dap-python.nix index afdcee2c..8c9668d5 100644 --- a/plugins/by-name/dap/dap-python.nix +++ b/plugins/by-name/dap/dap-python.nix @@ -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; };