libiconv: fix android cross-compile

This commit is contained in:
Alexandre Esteves 2024-11-10 02:26:09 +00:00
parent ec1f3c7390
commit d547fa17c5

View File

@ -6,7 +6,7 @@
# assert !stdenv.hostPlatform.isLinux || stdenv.hostPlatform != stdenv.buildPlatform; # TODO: improve on cross
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
pname = "libiconv";
version = "1.17";
@ -87,4 +87,7 @@ stdenv.mkDerivation rec {
# This library is not needed on GNU platforms.
hydraPlatforms = with lib.platforms; cygwin ++ darwin ++ freebsd;
};
}
} // lib.optionalAttrs (stdenv.hostPlatform.libc == "bionic") {
# https://github.com/NixOS/nixpkgs/pull/192630#discussion_r978985593
hardeningDisable = [ "fortify" ];
})