1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 07:04:28 +00:00
nixpkgs/pkgs/applications/version-management/tortoisehg/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

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}";
version = "4.5.2";
2015-07-31 20:29:29 +01:00
src = fetchurl {
2015-07-31 20:29:29 +01:00
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
sha256 = "0q12zjpgafdch4ns31k4afy25g837xm7v2qwj62806l2dz4rm4h9";
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 ];
2018-02-22 16:41:51 +00:00
doCheck = false; # tests fail with "thg: cannot connect to X server"
dontStrip = true;
buildPhase = "";
installPhase = ''
2016-11-09 14:39:43 +00:00
${python2Packages.python.executable} setup.py install --prefix=$out
mkdir -p $out/share/doc/tortoisehg
cp COPYING.txt $out/share/doc/tortoisehg/Copying.txt.gz
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
2015-07-31 20:29:29 +01:00
'';
checkPhase = ''
echo "test: thg version"
$out/bin/thg version
'';
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;
maintainers = with lib.maintainers; [ danbst ];
2015-07-31 20:29:29 +01:00
};
}