1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00
nixpkgs/pkgs/development/tools/misc/itstool/default.nix

29 lines
789 B
Nix
Raw Normal View History

{ stdenv, fetchurl, python2, libxml2Python }:
# We need the same Python as is used to build libxml2Python
stdenv.mkDerivation rec {
2016-07-22 23:32:43 +01:00
name = "itstool-2.0.2";
src = fetchurl {
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
2016-07-22 23:32:43 +01:00
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
};
buildInputs = [ python2 libxml2Python ];
2013-04-20 09:25:11 +01:00
patchPhase =
''
sed -e '/import libxml2/i import sys\
sys.path.append("${libxml2Python}/lib/${python2.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 ];
};
}