Skip to content

Commit

Permalink
itstool: use python2
Browse files Browse the repository at this point in the history
See #19631 for a proper fix.
  • Loading branch information
FRidh committed Oct 18, 2016
1 parent adbaed0 commit 2a1c4e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/tools/misc/itstool/default.nix
@@ -1,4 +1,5 @@
{ stdenv, fetchurl, python, libxml2Python }:
{ stdenv, fetchurl, python2, libxml2Python }:
# We need the same Python as is used to build libxml2Python

stdenv.mkDerivation rec {
name = "itstool-2.0.2";
Expand All @@ -8,12 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a";
};

buildInputs = [ python libxml2Python ];
buildInputs = [ python2 libxml2Python ];

patchPhase =
''
sed -e '/import libxml2/i import sys\
sys.path.append("${libxml2Python}/lib/${python.libPrefix}/site-packages")' \
sys.path.append("${libxml2Python}/lib/${python2.libPrefix}/site-packages")' \
-i itstool.in
'';

Expand Down

0 comments on commit 2a1c4e9

Please sign in to comment.