tortoisehg: use python2

This commit is contained in:
Frederik Rietdijk 2016-11-09 15:39:43 +01:00
parent d56209dc3b
commit 3cd2ca2751

View File

@ -1,6 +1,6 @@
{lib, fetchurl, mercurial, pythonPackages}:
{lib, fetchurl, mercurial, python2Packages}:
pythonPackages.buildPythonApplication rec {
python2Packages.buildPythonApplication rec {
name = "tortoisehg-${version}";
version = "3.9.2";
@ -9,15 +9,15 @@ pythonPackages.buildPythonApplication rec {
sha256 = "17wcsf91z7dnb7c8vyagasj5vvmas6ms5lx1ny4pnm94qzslkfh2";
};
pythonPath = with pythonPackages; [ pyqt4 mercurial qscintilla iniparse ];
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
propagatedBuildInputs = with pythonPackages; [ qscintilla iniparse ];
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
doCheck = false;
dontStrip = true;
buildPhase = "";
installPhase = ''
${pythonPackages.python.executable} setup.py install --prefix=$out
${python2Packages.python.executable} setup.py install --prefix=$out
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
'';