From f4c51495b73809304062bac1ee487297a707a4c0 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 8 Nov 2023 03:50:09 -0800 Subject: [PATCH] jbig2dec: fix cross jbig2dec's ./autogen.sh script expects to call ./configure itself, so any flags we want to have passed to ./configure (like --host) need to be passed to autogen.sh. The simple way to accomplish this is to simply set configureScript to autogen.sh. --- pkgs/development/libraries/jbig2dec/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/jbig2dec/default.nix b/pkgs/development/libraries/jbig2dec/default.nix index f89152820698..13059088d25c 100644 --- a/pkgs/development/libraries/jbig2dec/default.nix +++ b/pkgs/development/libraries/jbig2dec/default.nix @@ -19,6 +19,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoconf automake libtool ]; + # `autogen.sh` runs `configure`, and expects that any flags needed + # by `configure` (like `--host`) are passed to `autogen.sh`. + configureScript = "./autogen.sh"; + nativeCheckInputs = [ python3 ]; doCheck = true;