nixpkgs/pkgs/development/mobile/androidenv/lldb.nix
2020-01-07 14:02:13 +07:00

13 lines
458 B
Nix

{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_1_0_2.out pkgs.ncurses5 ];
patchInstructions = lib.optionalString (os == "linux") ''
addAutoPatchelfSearchPath $packageBaseDir/lib
autoPatchelf $packageBaseDir/lib
autoPatchelf $packageBaseDir/bin
'';
}