From e9b2dfbb550b0df383dcbbb27fbba494e66b6c35 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Wed, 12 Mar 2025 07:57:34 +0100 Subject: [PATCH] rPackages.findpython: add nixpkgs python to list of python_cmds --- pkgs/development/r-modules/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index fc1a05996893..2322f0b02d23 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1123,6 +1123,15 @@ let ''; }); + findpython = old.findpython.overrideAttrs (attrs: { + postPatch = '' + substituteInPlace "R/find_python_cmd.r" \ + --replace-fail 'python_cmds[which(python_cmds != "")]' \ + 'python_cmds <- c(python_cmds, file.path("${lib.getBin pkgs.python3}", "bin", "python3")) + python_cmds[which(python_cmds != "")]' + ''; + }); + alcyon = old.alcyon.overrideAttrs (attrs: { configureFlags = [ "--enable-force-openmp"