mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
13 lines
452 B
Nix
13 lines
452 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.out pkgs.ncurses5 ];
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
addAutoPatchelfSearchPath $packageBaseDir/lib
|
|
autoPatchelf $packageBaseDir/lib
|
|
autoPatchelf $packageBaseDir/bin
|
|
'';
|
|
}
|