From 10ac0a893783e2c1a100e68ae96a1fb8d349cd33 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 17 Oct 2021 14:48:19 +0100 Subject: [PATCH] pkgsMusl.bison: fix tests by adding iconv workaround for musl gnulib relies on --host= to check if iconv() on the platform might convert unsupported symbols to '*'. Noticed as failed tests. --- pkgs/development/tools/parsing/bison/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/parsing/bison/default.nix b/pkgs/development/tools/parsing/bison/default.nix index 58e86331508e..3d2daba239a3 100644 --- a/pkgs/development/tools/parsing/bison/default.nix +++ b/pkgs/development/tools/parsing/bison/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-BsnhO99+sk1M62tZIFpPZ8LH5yExGWREMP6C+9FKCrs="; }; + # gnulib relies on --host= to detect iconv() features on musl(). + # Otherwise tests fail due to incorrect unicode symbol oconversion. + configurePlatforms = [ "build" "host" ]; + nativeBuildInputs = [ m4 perl ] ++ lib.optional stdenv.isSunOS help2man; propagatedBuildInputs = [ m4 ];