mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 11:32:03 +00:00
9d03e96caa
svn path=/nixpkgs/trunk/; revision=31372
28 lines
702 B
Nix
28 lines
702 B
Nix
{ stdenv, fetchurl, python, libxml2Python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "itstool-1.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://files.itstool.org/itstool/${name}.tar.bz2";
|
|
sha256 = "1jchgcgxvqwkhr61q0j08adl1k8hw86dzbl207gzmns9fa7vmzqg";
|
|
};
|
|
|
|
buildInputs = [ python ];
|
|
|
|
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 ];
|
|
};
|
|
}
|