2016-10-18 07:58:12 +01:00
|
|
|
{ stdenv, fetchurl, python2, libxml2Python }:
|
|
|
|
# We need the same Python as is used to build libxml2Python
|
2012-01-06 20:09:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-06-01 16:23:53 +01:00
|
|
|
# 2.0.3+ breaks the build of gnome3.gnome-desktop
|
|
|
|
# https://github.com/itstool/itstool/issues/17
|
|
|
|
name = "itstool-2.0.2";
|
2012-01-06 20:09:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
|
2018-06-01 16:23:53 +01:00
|
|
|
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
|
2012-01-06 20:09:39 +00:00
|
|
|
};
|
|
|
|
|
2016-10-18 07:58:12 +01:00
|
|
|
buildInputs = [ python2 libxml2Python ];
|
2013-04-20 09:25:11 +01:00
|
|
|
|
2012-01-06 20:09:39 +00:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed -e '/import libxml2/i import sys\
|
2016-10-18 07:58:12 +01:00
|
|
|
sys.path.append("${libxml2Python}/lib/${python2.libPrefix}/site-packages")' \
|
2012-01-06 20:09:39 +00:00
|
|
|
-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;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2012-01-06 20:09:39 +00:00
|
|
|
};
|
|
|
|
}
|