The file xml2-config will not report the path to xml2-config itself
since that was moved to the dev output.  The attached patch sets
exec_prefix to match the executable files placed in the dev output.
>From ddd8f1a6c52be129be73faf023f9769cede75042 Mon Sep 17 00:00:00 2001
From: Karn Kallio <[email protected]>
Date: Wed, 20 Apr 2016 17:58:19 -0430
Subject: [PATCH] libxml2 : Have exec_prefix match the location of
 bin/xml2-config.

---
 pkgs/development/libraries/libxml2/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix
index f7e1753..8eedf50 100644
--- a/pkgs/development/libraries/libxml2/default.nix
+++ b/pkgs/development/libraries/libxml2/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
 
   propagatedBuildInputs = [ zlib findXMLCatalogs ];
 
-  configureFlags = "--with-python=${python}";
+  configureFlags = "--with-python=${python} --exec_prefix=$dev";
 
   enableParallelBuilding = true;
 
-- 
2.8.0

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to