2016-11-09 14:39:43 +00:00
|
|
|
{lib, fetchurl, mercurial, python2Packages}:
|
2015-07-31 20:29:29 +01:00
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2015-07-31 20:29:29 +01:00
|
|
|
name = "tortoisehg-${version}";
|
2017-03-23 17:24:32 +00:00
|
|
|
version = "4.1.1";
|
2015-07-31 20:29:29 +01:00
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
src = fetchurl {
|
2015-07-31 20:29:29 +01:00
|
|
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
2017-03-23 17:24:32 +00:00
|
|
|
sha256 = "14fy5p5hx4iij5kyma9679nrprd9lsjr6j047bfyfrwa3l4knj2g";
|
2015-07-31 20:29:29 +01:00
|
|
|
};
|
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
|
2015-07-31 20:29:29 +01:00
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
|
2015-11-17 21:09:38 +00:00
|
|
|
|
2015-07-31 20:29:29 +01:00
|
|
|
doCheck = false;
|
2016-04-22 17:00:43 +01:00
|
|
|
dontStrip = true;
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
2016-11-09 14:39:43 +00:00
|
|
|
${python2Packages.python.executable} setup.py install --prefix=$out
|
2016-04-22 17:00:43 +01:00
|
|
|
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
|
2015-07-31 20:29:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt based graphical tool for working with Mercurial";
|
|
|
|
homepage = http://tortoisehg.bitbucket.org/;
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2017-01-20 14:43:34 +00:00
|
|
|
maintainers = with lib.maintainers; [ danbst ];
|
2015-07-31 20:29:29 +01:00
|
|
|
};
|
2015-11-17 21:09:38 +00:00
|
|
|
}
|