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.
|
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" ];
|
|
|
|
symlinkPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
ln -s "${compose.androidsdk}/bin" $out/bin
|
|
|
|
for d in ${compose.androidsdk}/libexec/android-sdk/*; do
|
|
|
|
ln -s $d $out/$(basename $d)
|
|
|
|
done
|
|
|
|
'';
|
2020-04-22 17:05:18 +00:00
|
|
|
}
|