From 9220d5b002d0b3fce8e23ab8de63caa8649d80f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 12 Nov 2013 14:05:54 +0100 Subject: [PATCH] libxml2 on FreeBSD: disable impure python detection This might be good for all platforms, when we do some big rebuild again. --- pkgs/development/libraries/libxml2/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 5ead83011c8c..b86df4969c29 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -40,5 +40,8 @@ stdenv.mkDerivation (rec { # this is a pair of ugly hacks to make python stuff install into the right place preInstall = ''substituteInPlace python/libxml2mod.la --replace "${python}" "$out"''; installFlags = ''pythondir="$(out)/lib/${python.libPrefix}/site-packages"''; + +} // stdenv.lib.optionalAttrs (!pythonSupport && stdenv.isFreeBSD) { + configureFlags = "--with-python=no"; # otherwise build impurity bites us })