2012-01-06 21:09:39 +01:00
|
|
|
{ stdenv, fetchurl, python, libxml2Python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-20 10:25:11 +02:00
|
|
|
name = "itstool-1.2.0";
|
2012-01-06 21:09:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
|
2013-04-20 10:25:11 +02:00
|
|
|
sha256 = "1akq75aflihm3y7js8biy7b5mw2g11vl8yq90gydnwlwp0zxdzj6";
|
2012-01-06 21:09:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
2013-04-20 10:25:11 +02:00
|
|
|
|
2012-01-06 21:09:39 +01:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed -e '/import libxml2/i import sys\
|
|
|
|
sys.path.append("${libxml2Python}/lib/${python.libPrefix}/site-packages")' \
|
|
|
|
-i itstool.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://itstool.org/;
|
|
|
|
description = "XML to PO and back again";
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
|
|
};
|
|
|
|
}
|