mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ pkgs, lib, mercurial, pyPackages ? pkgs.python27Packages }:
|
|
|
|
pkgs.buildPythonApplication rec {
|
|
name = "tortoisehg-${version}";
|
|
version = "3.6";
|
|
namePrefix = "";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
|
sha256 = "ec43d13f029bb23a12129d2a2c3b3b4daf3d8121cbb5c9c23e4872f7b0b75ad8";
|
|
};
|
|
|
|
pythonPath = [ pkgs.pyqt4 mercurial ]
|
|
++ (with pyPackages; [qscintilla iniparse]);
|
|
|
|
propagatedBuildInputs = with pyPackages; [ qscintilla iniparse ];
|
|
|
|
doCheck = false;
|
|
|
|
postUnpack = ''
|
|
substituteInPlace $sourceRoot/setup.py \
|
|
--replace "/usr/share/" "$out/share/"
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
|
|
'';
|
|
|
|
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" ];
|
|
};
|
|
}
|