androidStudioPackages.{canary,dev}: properly fix interpreter paths of deployed scripts

This commit is contained in:
IvarWithoutBones 2021-08-02 16:29:56 +02:00
parent 419f03859d
commit 0d315b7f70

View file

@ -65,10 +65,14 @@ let
sha256 = sha256Hash;
};
nativeBuildInputs = [ unzip ];
buildInputs = [
nativeBuildInputs = [
unzip
makeWrapper
];
# Causes the shebangs in interpreter scripts deployed to mobile devices to be patched, which Android does not understand
dontPatchShebangs = true;
installPhase = ''
cp -r . $out
wrapProgram $out/bin/studio.sh \
@ -152,9 +156,6 @@ let
'';
};
# Causes the shebangs in interpreter scripts deployed to mobile devices to be patched, which Android does not understand
dontPatchShebangs = true;
desktopItem = makeDesktopItem {
name = drvName;
exec = pname;