mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
5b91d4ab65
androidenv did not previously write license files, which caused certain gradle-based Android tools to fail. Restructure androidenv's list of Android packages into a single repo.json file to prevent duplication and enable us to extract the EULA texts, which we then hash with builtins.hashString to produce the license files that Android gradle tools look for. Remove includeDocs and lldbVersions, as these have been removed from the Android package repositories. Improve documentation and examples.
11 lines
361 B
Nix
11 lines
361 B
Nix
{deployAndroidPackage, lib, package, os, autoPatchelfHook, pkgs}:
|
|
|
|
deployAndroidPackage {
|
|
inherit package os;
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
buildInputs = lib.optional (os == "linux") [ pkgs.stdenv.glibc pkgs.stdenv.cc.cc pkgs.ncurses5 ];
|
|
patchInstructions = lib.optionalString (os == "linux") ''
|
|
autoPatchelf $packageBaseDir/bin
|
|
'';
|
|
}
|