[Nix-dev] SVN commit r32596

David Guibert david.guibert at gmail.com
Tue Mar 13 21:52:10 CET 2012


Hi

On Tue, Mar 13, 2012 at 9:17 PM, Corey O'Connor <coreyoconnor at gmail.com> wrote:
> This commit moved the libxml2 python module.
> See: http://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg04755.html
>
> This appears to break the build of evince. Which uses python libxml2
> to build the documentation. See the error at the end of this message.
>
> I am not sure how to resolve this.

I've one uncommitted modification to gnome-doc-utils which had fixed
the compilation of evince on my system.
But I don't know if it's the best way to resolve the issue.

diff --git a/pkgs/desktops/gnome-2/desktop/gnome-doc-utils/default.nix
b/pkgs/desktops/gnome-2/desktop/gnome-doc-utils/default.nix
index 4953c86..ef85e6f 100644
--- a/pkgs/desktops/gnome-2/desktop/gnome-doc-utils/default.nix
+++ b/pkgs/desktops/gnome-2/desktop/gnome-doc-utils/default.nix
@@ -10,8 +10,12 @@ stdenv.mkDerivation {
   };

   configureFlags = "--disable-scrollkeeper";
-  buildInputs = [ python libxml2Python libxslt ];
-  postInstall = "wrapPythonPrograms";
+  buildInputs = [ python libxml2Python libxslt makeWrapper ];
+#  postInstall = "wrapPythonPrograms";
+  postInstall = ''
+    wrapProgram $out/bin/xml2po --prefix PYTHONPATH : $(toPythonPath $out) \
+      ''${PYTHONPATH:+ --prefix PYTHONPATH : $PYTHONPATH} \
+  '';

   buildNativeInputs = [ pkgconfig intltool pythonPackages.wrapPython ];
 }
-- 
Regards, David


More information about the nix-dev mailing list