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

32 lines
989 B
Nix
Raw Normal View History

{lib, fetchurl, mercurial, pythonPackages}:
2015-07-31 21:29:29 +02:00
pythonPackages.buildPythonApplication rec {
2015-07-31 21:29:29 +02:00
name = "tortoisehg-${version}";
2016-05-17 13:02:06 +02:00
version = "3.8.1";
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-05-17 13:02:06 +02:00
sha256 = "1v5h5yz9b360ris9p8zsdjxqvaflp9z2b6b7dfb4abn2irv3jip6";
2015-07-31 21:29:29 +02:00
};
pythonPath = with pythonPackages; [ pyqt4 mercurial qscintilla iniparse ];
2015-07-31 21:29:29 +02:00
propagatedBuildInputs = with pythonPackages; [ qscintilla iniparse ];
2015-07-31 21:29:29 +02:00
doCheck = false;
dontStrip = true;
buildPhase = "";
installPhase = ''
${pythonPackages.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" ];
};
}