uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/applications/editors/rstudio/r-location.patch
Normal file
30
pkgs/applications/editors/rstudio/r-location.patch
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
diff --git a/src/cpp/core/r_util/REnvironmentPosix.cpp b/src/cpp/core/r_util/REnvironmentPosix.cpp
|
||||
index dbc9a9a1..9a526a86 100644
|
||||
--- a/src/cpp/core/r_util/REnvironmentPosix.cpp
|
||||
+++ b/src/cpp/core/r_util/REnvironmentPosix.cpp
|
||||
@@ -107,12 +107,9 @@ FilePath systemDefaultRScript(std::string* pErrMsg)
|
||||
{
|
||||
// check fallback paths
|
||||
std::vector<std::string> rScriptPaths = {
|
||||
- "/usr/bin/R",
|
||||
- "/usr/local/bin/R",
|
||||
- "/opt/local/bin/R",
|
||||
+ "@R@/bin/R"
|
||||
#ifdef __APPLE__
|
||||
- "/opt/homebrew/bin/R",
|
||||
- "/Library/Frameworks/R.framework/Resources/bin/R",
|
||||
+ "@R@/bin/R",
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -225,8 +222,7 @@ FilePath systemDefaultRScript(std::string* pErrMsg)
|
||||
// scan in standard locations as a fallback
|
||||
std::string scanErrMsg;
|
||||
std::vector<std::string> rScriptPaths;
|
||||
- rScriptPaths.push_back("/usr/local/bin/R");
|
||||
- rScriptPaths.push_back("/usr/bin/R");
|
||||
+ rScriptPaths.push_back("@R@/bin/R");
|
||||
FilePath scriptPath = scanForRScript(rScriptPaths, &scanErrMsg);
|
||||
if (scriptPath.isEmpty())
|
||||
{
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue