Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
change shell.nix
previously I had to use buildfhsuserenv and also glibc for some reason,
that I forget

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
  • Loading branch information
phanirithvij committed Oct 24, 2024
commit c29555da4f10ab7c62ae644e8fc2a26b3582fe15
20 changes: 8 additions & 12 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@ let
includeNDK = false;
}).androidsdk;
in
(pkgs.buildFHSUserEnv {
name = "android-sdk";
targetPkgs =
pkgs:
(with pkgs; [
androidSdk'
glibc
npins
nixfmt-rfc-style
]);
runScript = pkgs.writeScript "init.sh" ''
pkgs.mkShellNoCC {
packages = with pkgs; [
androidSdk'
npins
nixfmt-rfc-style
];
shellHook = ''
export JAVA_HOME=${jdk}
export PATH="${jdk}/bin:$PATH"
export ANDROID_SDK=${androidSdk'}/libexec/android-sdk
exec bash
'';
}).env
}