Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 34 lines 1.1 kB view raw
1{ androidenv, buildPackages, pkgs, targetPackages 2, includeSources ? true, licenseAccepted ? false 3}: 4 5rec { 6 "18b" = 7 let 8 ndkVersion = "18.1.5063045"; 9 10 buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages { 11 includeNDK = true; 12 inherit ndkVersion; 13 }; 14 15 androidComposition = androidenv.composeAndroidPackages { 16 includeNDK = true; 17 inherit ndkVersion; 18 }; 19 in 20 import ./androidndk-pkgs.nix { 21 inherit (buildPackages) 22 makeWrapper; 23 inherit (pkgs) 24 lib stdenv 25 runCommand wrapBintoolsWith wrapCCWith; 26 # buildPackages.foo rather than buildPackages.buildPackages.foo would work, 27 # but for splicing messing up on infinite recursion for the variants we 28 # *dont't* use. Using this workaround, but also making a test to ensure 29 # these two really are the same. 30 buildAndroidndk = buildAndroidComposition.ndk-bundle; 31 androidndk = androidComposition.ndk-bundle; 32 targetAndroidndkPkgs = targetPackages.androidndkPkgs_18b; 33 }; 34}