summary refs log tree commit diff
path: root/pkgs/development/tools/misc/itstool
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-10-18 08:58:12 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-10-18 23:16:03 +0200
commit2a1c4e932295a32aa2651ba077228a8d6494491b (patch)
treeb84adfda140c6e3ce7c247bbb7de29d9a6f49c4a /pkgs/development/tools/misc/itstool
parentadbaed081596919b085d398c9f46e576e2fbc6a9 (diff)
downloadnixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar.gz
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar.bz2
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar.lz
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar.xz
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.tar.zst
nixpkgs-2a1c4e932295a32aa2651ba077228a8d6494491b.zip
itstool: use python2
See https://github.com/NixOS/nixpkgs/issues/19631 for a proper fix.
Diffstat (limited to 'pkgs/development/tools/misc/itstool')
-rw-r--r--pkgs/development/tools/misc/itstool/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/itstool/default.nix b/pkgs/development/tools/misc/itstool/default.nix
index fa8002d4f6c..8c2686d9a22 100644
--- a/pkgs/development/tools/misc/itstool/default.nix
+++ b/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";
@@ -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
     '';