803aebe826
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.
18 lines
333 B
Nix
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
|
|
'';
|
|
}
|