summary refs log tree commit diff
path: root/pkgs/development/mobile/androidenv/default.nix
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2018-05-17 17:22:27 +0200
committerBastian Köcher <git@kchr.de>2018-05-17 17:22:27 +0200
commit832a8ca087b748db7be7969581e0e10ae1eb486c (patch)
tree017eecd2181fcadb2dcb4af1dea616ad17a6a357 /pkgs/development/mobile/androidenv/default.nix
parentc056694d74fe99c6a0657528fac73645680e0df8 (diff)
downloadnixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar.gz
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar.bz2
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar.lz
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar.xz
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.tar.zst
nixpkgs-832a8ca087b748db7be7969581e0e10ae1eb486c.zip
androidndk: Fix usage as crossSystem
Diffstat (limited to 'pkgs/development/mobile/androidenv/default.nix')
-rw-r--r--pkgs/development/mobile/androidenv/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/mobile/androidenv/default.nix b/pkgs/development/mobile/androidenv/default.nix
index d122ffe241e..3978ae1aeb7 100644
--- a/pkgs/development/mobile/androidenv/default.nix
+++ b/pkgs/development/mobile/androidenv/default.nix
@@ -281,4 +281,19 @@ rec {
     inherit androidndk;
     targetAndroidndkPkgs = targetPackages.androidenv.androidndkPkgs;
   };
+
+  androidndkPkgs_10e = import ./androidndk-pkgs.nix {
+    inherit (buildPackages)
+      makeWrapper;
+    inherit (pkgs)
+      lib hostPlatform targetPlatform
+      runCommand wrapBintoolsWith wrapCCWith;
+    # buildPackages.foo rather than buildPackages.buildPackages.foo would work,
+    # but for splicing messing up on infinite recursion for the variants we
+    # *dont't* use. Using this workaround, but also making a test to ensure
+    # these two really are the same.
+    buildAndroidndk = buildPackages.buildPackages.androidenv.androidndk_10e;
+    androidndk = androidndk_10e;
+    targetAndroidndkPkgs = targetPackages.androidenv.androidndkPkgs_10e;
+  };
 }