mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-05 15:33:08 +00:00
18 lines
530 B
Nix
18 lines
530 B
Nix
|
|
{ stdenv, compose }:
|
||
|
|
|
||
|
|
#
|
||
|
|
# This derivation simply symlinks some stuff to get
|
||
|
|
# shorter paths as libexec/android-sdk is quite the mouthful.
|
||
|
|
# With this you can just do `androidPkgs.sdk` and `androidPkgs.ndk`.
|
||
|
|
#
|
||
|
|
stdenv.mkDerivation {
|
||
|
|
name = "${compose.androidsdk.name}-mod";
|
||
|
|
phases = [ "symlinkPhase" ];
|
||
|
|
outputs = [ "out" "sdk" "ndk" ];
|
||
|
|
symlinkPhase = ''
|
||
|
|
ln -s ${compose.androidsdk} $out
|
||
|
|
ln -s ${compose.androidsdk}/libexec/android-sdk $sdk
|
||
|
|
ln -s ${compose.androidsdk}/libexec/android-sdk/ndk-bundle $ndk
|
||
|
|
'';
|
||
|
|
}
|