about summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/patcher.nix
blob: c0252839cf23fd3d2318784ff6db01c67f877041 (plain) (blame)
1
2
3
4
5
6
7
8
9
{deployAndroidPackage, lib, package, os, autoPatchelfHook, stdenv}:

deployAndroidPackage {
  inherit package os;
  nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ];
  patchInstructions = lib.optionalString (os == "linux") ''
    autoPatchelf $packageBaseDir/bin
  '';
}