Files
nixpkgs/pkgs/development/mobile/androidenv/patcher.nix
T
Morgan Jones 803aebe826 androidenv: support if-supported for include* options
This lets us stop hardcoding platforms and start filtering for which
archives have sources, which is the most accurate way to do it.

Tested on x86_64-linux, aarch64-linux, and aarch64-darwin.
2025-03-29 22:13:03 +05:30

18 lines
333 B
Nix

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