itstool: don't use libxml2Python
This commit is contained in:
parent
7850356283
commit
8d926467be
1 changed files with 2 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
||||||
{ stdenv, fetchurl, python2, libxml2Python }:
|
{ stdenv, fetchurl, python3 }:
|
||||||
# We need the same Python as is used to build libxml2Python
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
# 2.0.3+ breaks the build of gnome3.gnome-desktop
|
# 2.0.3+ breaks the build of gnome3.gnome-desktop
|
||||||
|
@ -11,14 +10,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
|
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python2 libxml2Python ];
|
buildInputs = [ (python3.withPackages(ps: with ps; [ libxml2 ])) ];
|
||||||
|
|
||||||
patchPhase =
|
|
||||||
''
|
|
||||||
sed -e '/import libxml2/i import sys\
|
|
||||||
sys.path.append("${libxml2Python}/lib/${python2.libPrefix}/site-packages")' \
|
|
||||||
-i itstool.in
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://itstool.org/;
|
homepage = http://itstool.org/;
|
||||||
|
|
Loading…
Reference in a new issue