From 6d980c226487dabec0a6dbe795d13d17e99f6ec8 Mon Sep 17 00:00:00 2001 From: crumblingMizzle <77518303+crumblingMizzle@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:33:25 -0400 Subject: [PATCH] swig: fix cross-compilation --- pkgs/by-name/sw/swig/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sw/swig/package.nix b/pkgs/by-name/sw/swig/package.nix index 7b7b7e01a8f3..8dc3f4af8125 100644 --- a/pkgs/by-name/sw/swig/package.nix +++ b/pkgs/by-name/sw/swig/package.nix @@ -20,13 +20,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-jsi83v9sg0n5kUfDACqdNAS2VuLSyxv+pe2LRcO4Khc="; }; + # It is necessary to pull in the target pcre2-config binary this way because including pcre2 in nativeBuildInputs can create linking failures with cross-compilation + env.PCRE2_CONFIG = "${pcre2.dev}/bin/pcre2-config"; strictDeps = true; nativeBuildInputs = [ autoconf automake libtool bison - pcre2 ]; buildInputs = [ pcre2 ];