3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome/gnome-doc-utils.nix
Michael Raskin 8fd810e5d3 This was needed for me to get a working gnome-doc-utils package
svn path=/nixpkgs/trunk/; revision=9726
2007-11-16 18:37:23 +00:00

24 lines
690 B
Nix

args: with args;
# !!! xml2po needs to store the path to libxml2
stdenv.mkDerivation {
inherit (input) name src;
buildInputs = [
pkgconfig perl perlXMLParser python
libxml2 libxslt gettext python libxml2Python
];
configureFlags = "--disable-scrollkeeper";
postInstall = "
mv \$out/bin/xml2po \$out/bin/.xml2po.orig
pythonPathLibXml2=\"\$(toPythonPath ${libxml2Python})\"
echo -e '#! ${stdenv.shell}\nPYTHONPATH=$PYTHONPATH:'\"\$( toPythonPath \$out )"+
":\${pythonPathLibXml2//python2.5/python2.4}"+
":\$( toPythonPath ${libxml2Python} )\""+
"' \$(dirname \$0)/.xml2po.orig \"\$@\"' > \$out/bin/xml2po;
chmod a+x \$out/bin/xml2po
";
}