Skip to content

Commit dae4da9

Browse files
committed
Overlay to avoid issue that will be fixed by NixOS/nixpkgs#385722
1 parent 646b189 commit dae4da9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

overlays/android.nix

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,20 @@ final: prev: {
5555
# We also link iserv against the static libs, so that we have a fully static
5656
# android (bionic/linux) iserv we can execute on glibc/linux.
5757
bionic = prev.bionic.override { enableStatic = true; enableShared = true; };
58-
})
58+
}) //
59+
# See https://github.com/NixOS/nixpkgs/pull/385722
60+
builtins.mapAttrs (name: ndkPkg: ndkPkg // {
61+
clang = ndkPkg.clang.override (oldAttrs: prev.lib.optionalAttrs (oldAttrs ? extraBuildCommands) {
62+
extraBuildCommands = builtins.replaceStrings ["-target arm-linux-androideabi"] ["-target armv7a-linux-androideabi"] oldAttrs.extraBuildCommands;
63+
});
64+
}) {
65+
inherit (prev)
66+
androidndkPkgs
67+
androidndkPkgs_21
68+
androidndkPkgs_23
69+
androidndkPkgs_23b
70+
androidndkPkgs_24
71+
androidndkPkgs_25
72+
androidndkPkgs_26
73+
androidndkPkgs_30;
74+
}

0 commit comments

Comments
 (0)