with (import {}); let android-composition = import ./android-composition.nix; in stdenv.mkDerivation { name = "androidsdk"; buildInputs = [ python3Full ]; src = "${android-composition.androidsdk}"; dontUnpack = true; buildPhase = '' buildDir=$PWD/android-composition mkdir $buildDir cp -r $src/* $buildDir chmod -R +w "$buildDir/libexec/android-sdk" python ${./androidsdk-fixup.py} "$buildDir/libexec/android-sdk" ''; installPhase = '' cp -r $buildDir $out ''; }