2016-11-09 14:39:43 +00:00
|
|
|
{lib, fetchurl, mercurial, python2Packages}:
|
2015-07-31 19:29:29 +00:00
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2015-07-31 19:29:29 +00:00
|
|
|
name = "tortoisehg-${version}";
|
2018-09-20 05:37:16 +00:00
|
|
|
version = "4.7.1";
|
2015-07-31 19:29:29 +00:00
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
src = fetchurl {
|
2015-07-31 19:29:29 +00:00
|
|
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
2018-09-20 05:37:16 +00:00
|
|
|
sha256 = "0x7hz4v882xy2r3k43fbndkq1kqwl3rl1zjmi8pxgpf05qcn950d";
|
2015-07-31 19:29:29 +00:00
|
|
|
};
|
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
|
2015-07-31 19:29:29 +00:00
|
|
|
|
2016-11-09 14:39:43 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
|
2015-11-17 21:09:38 +00:00
|
|
|
|
2018-02-22 16:41:51 +00:00
|
|
|
doCheck = false; # tests fail with "thg: cannot connect to X server"
|
2016-04-22 16:00:43 +00:00
|
|
|
dontStrip = true;
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
2016-11-09 14:39:43 +00:00
|
|
|
${python2Packages.python.executable} setup.py install --prefix=$out
|
2017-11-11 16:58:59 +00:00
|
|
|
mkdir -p $out/share/doc/tortoisehg
|
|
|
|
cp COPYING.txt $out/share/doc/tortoisehg/Copying.txt.gz
|
2016-04-22 16:00:43 +00:00
|
|
|
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
|
2015-07-31 19:29:29 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-02 11:31:29 +00:00
|
|
|
checkPhase = ''
|
|
|
|
echo "test: thg version"
|
|
|
|
$out/bin/thg version
|
|
|
|
'';
|
|
|
|
|
2015-07-31 19:29:29 +00: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 19:29:29 +00:00
|
|
|
};
|
2015-11-17 21:09:38 +00:00
|
|
|
}
|