nixpkgs/pkgs/applications/version-management/tortoisehg/default.nix

32 lines
994 B
Nix
Raw Normal View History

2016-11-09 15:39:43 +01:00
{lib, fetchurl, mercurial, python2Packages}:
2015-07-31 21:29:29 +02:00
2016-11-09 15:39:43 +01:00
python2Packages.buildPythonApplication rec {
2015-07-31 21:29:29 +02:00
name = "tortoisehg-${version}";
2016-10-29 23:09:55 +02:00
version = "3.9.2";
2015-07-31 21:29:29 +02:00
src = fetchurl {
2015-07-31 21:29:29 +02:00
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
2016-10-29 23:09:55 +02:00
sha256 = "17wcsf91z7dnb7c8vyagasj5vvmas6ms5lx1ny4pnm94qzslkfh2";
2015-07-31 21:29:29 +02:00
};
2016-11-09 15:39:43 +01:00
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
2015-07-31 21:29:29 +02:00
2016-11-09 15:39:43 +01:00
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
2015-07-31 21:29:29 +02:00
doCheck = false;
dontStrip = true;
buildPhase = "";
installPhase = ''
2016-11-09 15:39:43 +01:00
${python2Packages.python.executable} setup.py install --prefix=$out
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
2015-07-31 21:29:29 +02: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 = [ "abcz2.uprola@gmail.com" ];
};
}