Merge pull request #132423 from IvarWithoutBones/fix/android-studio-shebang

android-studio-{canary,dev}: properly fix interpreter paths
This commit is contained in:
Sandro 2021-08-04 15:33:15 +02:00 committed by GitHub
commit 922f5d80f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;