mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
11 lines
331 B
Nix
11 lines
331 B
Nix
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
|
|
|
deployAndroidPackage {
|
|
inherit package os;
|
|
buildInputs = [ autoPatchelfHook ]
|
|
++ lib.optional (os == "linux") [ pkgs.stdenv.glibc pkgs.stdenv.cc.cc ];
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
autoPatchelf $packageBaseDir/bin
|
|
'';
|
|
}
|