Unverified Commit 6c745acd authored by Justin Bedő's avatar Justin Bedő Committed by GitHub
Browse files

rPackages.findpython: add nixpkgs python to list of python_cmds (#387365)

parents a59cbcfc e9b2dfbb
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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"