This was needed for me to get a working gnome-doc-utils package
svn path=/nixpkgs/trunk/; revision=9726
This commit is contained in:
parent
df71193509
commit
8fd810e5d3
@ -210,7 +210,7 @@ rec {
|
|||||||
|
|
||||||
gnomedocutils = import ./gnome-doc-utils.nix {
|
gnomedocutils = import ./gnome-doc-utils.nix {
|
||||||
inherit stdenv fetchurl pkgconfig perl perlXMLParser python
|
inherit stdenv fetchurl pkgconfig perl perlXMLParser python
|
||||||
libxml2 libxslt gettext;
|
libxml2 libxslt gettext libxml2Python;
|
||||||
input = desktop.gnomedocutils;
|
input = desktop.gnomedocutils;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
{ input, stdenv, fetchurl, pkgconfig, perl, perlXMLParser, python
|
args: with args;
|
||||||
, libxml2, libxslt, gettext
|
|
||||||
}:
|
|
||||||
|
|
||||||
# !!! xml2po needs to store the path to libxml2
|
# !!! xml2po needs to store the path to libxml2
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -9,8 +6,18 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig perl perlXMLParser python
|
pkgconfig perl perlXMLParser python
|
||||||
libxml2 libxslt gettext
|
libxml2 libxslt gettext python libxml2Python
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = "--disable-scrollkeeper";
|
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
|
||||||
|
";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user