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

deployAndroidPackage {
  inherit package os;
  buildInputs = [ autoPatchelfHook ]
    ++ lib.optional (os == "linux") [ pkgs.glibc pkgs.stdenv.cc.cc pkgs.zlib pkgs.openssl.out pkgs.ncurses5 ];
  patchInstructions = lib.optionalString (os == "linux") ''
    addAutoPatchelfSearchPath $packageBaseDir/lib
    autoPatchelf $packageBaseDir/lib
    autoPatchelf $packageBaseDir/bin
  '';
}