Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32562451
D4483.1767339176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
948 B
Referenced Files
None
Subscribers
None
D4483.1767339176.diff
View Options
diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix
--- a/nix/dev-shell.nix
+++ b/nix/dev-shell.nix
@@ -16,6 +16,7 @@
, libuv
, nodejs-16_x
, olm
+, openjdk8
, openssl
, pkg-config
, protobuf_3_15_cmake
@@ -24,6 +25,7 @@
, watchman
, rustfmt
, yarn
+, zlib
}:
mkShell {
@@ -75,12 +77,20 @@
libiconv # identity service
]);
+ JAVA_HOME = openjdk8.passthru.home;
+
# shell commands to be ran upon entering shell
shellHook = let
socket = "mysql-socket/mysql.sock";
in ''
if [[ "$OSTYPE" == 'linux'* ]]; then
export MYSQL_UNIX_PORT=''${XDG_RUNTIME_DIR:-/run/user/$UID}/${socket}
+ export ANDROID_SDK_ROOT=''${ANDROID_SDK_ROOT:-$HOME/Android/Sdk}
+ fi
+
+ if [ -f /etc/NIXOS ]; then
+ # allow for impurely downloaded android ndk tools to be used on NixOS
+ export LD_LIBRARY_PATH=${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}
fi
if [[ "$OSTYPE" == 'darwin'* ]]; then
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 2, 7:32 AM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5878687
Default Alt Text
D4483.1767339176.diff (948 B)
Attached To
Mode
D4483: [Nix] Support building Android through gradle on Linux
Attached
Detach File
Event Timeline
Log In to Comment