2020-08-27 12:20:39 +00:00
|
|
|
{ stdenv, compose }:
|
|
|
|
|
2020-04-22 17:05:18 +00:00
|
|
|
#
|
2020-08-27 12:20:39 +00:00
|
|
|
# This derivation simply symlinks some stuff to get
|
|
|
|
# shorter paths as libexec/android-sdk is quite the mouthful.
|
2021-07-22 10:51:05 +00:00
|
|
|
# With this you can just do `androidPkgs.sdk` and `androidPkgs.ndk`.
|
2020-04-22 17:05:18 +00:00
|
|
|
#
|
2020-08-27 12:20:39 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${compose.androidsdk.name}-mod";
|
|
|
|
phases = [ "symlinkPhase" ];
|
2021-07-22 10:51:05 +00:00
|
|
|
outputs = [ "out" "sdk" "ndk" ];
|
2020-08-27 12:20:39 +00:00
|
|
|
symlinkPhase = ''
|
2021-07-22 10:51:05 +00:00
|
|
|
ln -s ${compose.androidsdk} $out
|
|
|
|
ln -s ${compose.androidsdk}/libexec/android-sdk $sdk
|
|
|
|
ln -s ${compose.androidsdk}/libexec/android-sdk/ndk-bundle $ndk
|
2020-08-27 12:20:39 +00:00
|
|
|
'';
|
2020-04-22 17:05:18 +00:00
|
|
|
}
|