mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
48698a0668
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4/bin/itstool -h` got 0 exit code - ran `/nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4/bin/itstool --help` got 0 exit code - ran `/nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4/bin/itstool -v` and found version 2.0.4 - ran `/nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4/bin/itstool --version` and found version 2.0.4 - found 2.0.4 with grep in /nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4 - found 2.0.4 in filename of file in /nix/store/pg0jpmczm1gb3rzp3qfnnjl0xfd48nqz-itstool-2.0.4
29 lines
748 B
Nix
29 lines
748 B
Nix
{ stdenv, fetchurl, python2, libxml2Python }:
|
|
# We need the same Python as is used to build libxml2Python
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "itstool-2.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
|
|
sha256 = "0q7b4qrc758zfx3adsgvz0r93swdbxjr42w37rahngm33nshihlp";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|