fixes #8096
This commit is contained in:
parent
30f1f34279
commit
84566bfb8a
@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_LICENSE_FILE="copying.txt"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.6.0
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://nim-lang.org/download/nim-$TERMUX_PKG_VERSION.tar.xz
|
||||
TERMUX_PKG_SHA256=52065d48d72a72702ec1afe5f7a9831e11673531e279cdff9caec01a07eec63d
|
||||
TERMUX_PKG_DEPENDS="clang, git, libandroid-glob"
|
||||
|
12
packages/nim/os.nim.patch
Normal file
12
packages/nim/os.nim.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr nim-1.6.0/lib/pure/os.nim nim-1.6.0.mod/lib/pure/os.nim
|
||||
--- nim-1.6.0/lib/pure/os.nim 2021-10-19 01:39:28.000000000 +0100
|
||||
+++ nim-1.6.0.mod/lib/pure/os.nim 2021-11-30 13:54:12.000000000 +0100
|
||||
@@ -1008,7 +1008,7 @@
|
||||
let buffer = newWideCString(size.int)
|
||||
if getTempPath(size, buffer) > 0:
|
||||
result = $buffer
|
||||
- elif defined(android): result = "/data/local/tmp"
|
||||
+ elif defined(android): result = "@TERMUX_PREFIX@/tmp"
|
||||
else:
|
||||
getTempDirImpl(result)
|
||||
if result.len == 0:
|
Loading…
Reference in New Issue
Block a user