1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/misc/itstool/default.nix
Jan Tojnar fd9cfc4db5 Revert "itstool: 2.0.2 -> 2.0.4" (#41339)
This reverts commit 48698a0668

It crashes and breaks the build of gnome3.gnome_desktop and others.

Upstream issue: https://github.com/itstool/itstool/issues/17
2018-06-01 15:23:53 +00:00

31 lines
861 B
Nix

{ stdenv, fetchurl, python2, libxml2Python }:
# We need the same Python as is used to build libxml2Python
stdenv.mkDerivation rec {
# 2.0.3+ breaks the build of gnome3.gnome-desktop
# https://github.com/itstool/itstool/issues/17
name = "itstool-2.0.2";
src = fetchurl {
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
};
buildInputs = [ python2 libxml2Python ];
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 = [ ];
};
}