diff --git a/pkgs/development/androidenv/androidsdk.nix b/pkgs/development/androidenv/androidsdk.nix index 00ccbcd34ef0..f11ae69e14a6 100644 --- a/pkgs/development/androidenv/androidsdk.nix +++ b/pkgs/development/androidenv/androidsdk.nix @@ -1,4 +1,4 @@ -{ stdenv, stdenv_32bit, fetchurl, unzip, shebangfix, makeWrapper +{ stdenv, stdenv_32bit, fetchurl, unzip, makeWrapper , platformTools, support, platforms, sysimages, addons , zlib_32bit , libX11_32bit, libxcb_32bit, libXau_32bit, libXdmcp_32bit, libXext_32bit @@ -54,14 +54,9 @@ stdenv.mkDerivation { --prefix LD_LIBRARY_PATH : `pwd`/lib:${libX11_32bit}/lib:${libxcb_32bit}/lib:${libXau_32bit}/lib:${libXdmcp_32bit}/lib:${libXext_32bit}/lib done ''} - - # These are shell scripts with a reference to #!/bin/bash, which must be patched - - for i in ddms draw9patch monkeyrunner monitor lint traceview - do - shebangfix $i - done + patchShebangs . + ${if stdenv.system == "i686-linux" then '' # The monitor requires some more patching @@ -158,7 +153,7 @@ stdenv.mkDerivation { then ( echo '#! ${stdenv.shell} -e' echo "cd $out/libexec/android-sdk-*/tools" - echo "./$(basename $i) \"\$@\"" ) > $out/bin/$(basename $i) + echo "exec ./$(basename $i) \"\$@\"" ) > $out/bin/$(basename $i) chmod +x $out/bin/$(basename $i) fi @@ -177,5 +172,5 @@ stdenv.mkDerivation { done ''; - buildInputs = [ shebangfix unzip makeWrapper ]; + buildInputs = [ unzip makeWrapper ]; } diff --git a/pkgs/development/androidenv/default.nix b/pkgs/development/androidenv/default.nix index ef7946a4e114..d2769799df13 100644 --- a/pkgs/development/androidenv/default.nix +++ b/pkgs/development/androidenv/default.nix @@ -2,7 +2,7 @@ rec { platformTools = import ./platform-tools.nix { - inherit (pkgs) stdenv fetchurl unzip shebangfix; + inherit (pkgs) stdenv fetchurl unzip; inherit (pkgs_i686) zlib ncurses; stdenv_32bit = pkgs_i686.stdenv; }; @@ -30,7 +30,7 @@ rec { }; androidsdk = import ./androidsdk.nix { - inherit (pkgs) stdenv fetchurl unzip shebangfix makeWrapper; + inherit (pkgs) stdenv fetchurl unzip makeWrapper; inherit (pkgs) freetype fontconfig gtk atk; inherit (pkgs.xorg) libX11 libXext libXrender; diff --git a/pkgs/development/androidenv/platform-tools.nix b/pkgs/development/androidenv/platform-tools.nix index 9f3243cc6f34..bc4ceb4e39da 100644 --- a/pkgs/development/androidenv/platform-tools.nix +++ b/pkgs/development/androidenv/platform-tools.nix @@ -1,4 +1,4 @@ -{stdenv, stdenv_32bit, fetchurl, unzip, shebangfix, zlib, ncurses}: +{stdenv, stdenv_32bit, fetchurl, unzip, zlib, ncurses}: stdenv.mkDerivation { name = "android-platform-tools-r15_rc7"; @@ -34,8 +34,8 @@ stdenv.mkDerivation { patchelf --set-rpath ${stdenv_32bit.gcc.gcc}/lib llvm-rs-cc ''} - shebangfix dx + patchShebangs . ''; - buildInputs = [ unzip shebangfix ]; + buildInputs = [ unzip ]; }