2016-11-09 17:39:43 +03:00
|
|
|
{lib, fetchurl, mercurial, python2Packages}:
|
2015-07-31 22:29:29 +03:00
|
|
|
|
2016-11-09 17:39:43 +03:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2015-07-31 22:29:29 +03:00
|
|
|
name = "tortoisehg-${version}";
|
2019-08-06 08:42:11 +03:00
|
|
|
version = "5.0.2";
|
2015-07-31 22:29:29 +03:00
|
|
|
|
2016-02-28 03:08:56 +03:00
|
|
|
src = fetchurl {
|
2015-07-31 22:29:29 +03:00
|
|
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
2019-08-06 08:42:11 +03:00
|
|
|
sha256 = "1fkawx4ymaacah2wpv2w7rxmv1mx08mg4x4r4fxh41jz1njjb8sz";
|
2015-07-31 22:29:29 +03:00
|
|
|
};
|
|
|
|
|
2016-11-09 17:39:43 +03:00
|
|
|
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
|
2015-07-31 22:29:29 +03:00
|
|
|
|
2016-11-09 17:39:43 +03:00
|
|
|
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
|
2015-11-18 00:09:38 +03:00
|
|
|
|
2018-02-22 19:41:51 +03:00
|
|
|
doCheck = false; # tests fail with "thg: cannot connect to X server"
|
2016-04-22 19:00:43 +03:00
|
|
|
dontStrip = true;
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
2016-11-09 17:39:43 +03:00
|
|
|
${python2Packages.python.executable} setup.py install --prefix=$out
|
2017-11-11 19:58:59 +03:00
|
|
|
mkdir -p $out/share/doc/tortoisehg
|
|
|
|
cp COPYING.txt $out/share/doc/tortoisehg/Copying.txt.gz
|
2016-04-22 19:00:43 +03:00
|
|
|
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
|
2015-07-31 22:29:29 +03:00
|
|
|
'';
|
|
|
|
|
2017-12-02 14:31:29 +03:00
|
|
|
checkPhase = ''
|
|
|
|
echo "test: thg version"
|
|
|
|
$out/bin/thg version
|
|
|
|
'';
|
|
|
|
|
2015-07-31 22:29:29 +03:00
|
|
|
meta = {
|
|
|
|
description = "Qt based graphical tool for working with Mercurial";
|
2019-05-03 12:14:31 +03:00
|
|
|
homepage = https://tortoisehg.bitbucket.io/;
|
2015-07-31 22:29:29 +03:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2017-01-20 17:43:34 +03:00
|
|
|
maintainers = with lib.maintainers; [ danbst ];
|
2015-07-31 22:29:29 +03:00
|
|
|
};
|
2015-11-18 00:09:38 +03:00
|
|
|
}
|