1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 15:47:28 +00:00
nixpkgs/pkgs/applications/version-management/tortoisehg/default.nix
R. RyanTM 7cf3891b75 tortoisehg: 4.6.1 -> 4.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
tortoisehg
2018-09-06 10:41:27 -07:00

39 lines
1.2 KiB
Nix

{lib, fetchurl, mercurial, python2Packages}:
python2Packages.buildPythonApplication rec {
name = "tortoisehg-${version}";
version = "4.7";
src = fetchurl {
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
sha256 = "1s99dmz8izsyj5mpnqlx9dasw8ar2lr68r3m1wyafzbqlqmbjbqm";
};
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
doCheck = false; # tests fail with "thg: cannot connect to X server"
dontStrip = true;
buildPhase = "";
installPhase = ''
${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
'';
checkPhase = ''
echo "test: thg version"
$out/bin/thg version
'';
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 ];
};
}