From fd38234dfc7ef38acf079a5be1227ca47f93c7f0 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 28 Dec 2018 14:02:49 -0600 Subject: [PATCH] swig: find pcre-config correctly --- pkgs/development/tools/misc/swig/3.x.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/swig/3.x.nix b/pkgs/development/tools/misc/swig/3.x.nix index 9dc2b535c091..136ea9c9062f 100644 --- a/pkgs/development/tools/misc/swig/3.x.nix +++ b/pkgs/development/tools/misc/swig/3.x.nix @@ -11,10 +11,8 @@ stdenv.mkDerivation rec { sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n"; }; - # for cross-compiling we need pcre.dev in nativeBuildInputs to get pcre-config - nativeBuildInputs = [ autoconf automake libtool bison pcre.dev ]; - disallowedReferences = [ buildPackages.pcre.dev ]; - + PCRE_CONFIG = "${pcre.dev}/bin/pcre-config"; + nativeBuildInputs = [ autoconf automake libtool bison ]; buildInputs = [ pcre ]; configureFlags = [ "--without-tcl" ];