Merge pull request #9070 from danbst/tortoise-hg
new package: TortoiseHg and dependencies
This commit is contained in:
commit
4d22b539b8
36
pkgs/applications/version-management/tortoisehg/default.nix
Normal file
36
pkgs/applications/version-management/tortoisehg/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ pkgs, lib, mercurial, pyPackages ? pkgs.python27Packages }:
|
||||
|
||||
pkgs.buildPythonPackage rec {
|
||||
name = "tortoisehg-${version}";
|
||||
version = "3.4.2";
|
||||
namePrefix = "";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
||||
sha256 = "18a587c8fybfjxbcj8i2smypxy7vfzmmrzibs74n3zy6dlb949nj";
|
||||
};
|
||||
|
||||
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" ];
|
||||
};
|
||||
}
|
@ -23,8 +23,6 @@ stdenv.mkDerivation rec {
|
||||
qmake qscintilla.pro
|
||||
'';
|
||||
|
||||
# TODO PyQt Support.
|
||||
|
||||
meta = {
|
||||
description = "A Qt port of the Scintilla text editing library";
|
||||
longDescription = ''
|
||||
|
@ -12941,6 +12941,8 @@ let
|
||||
wrapPython = pythonPackages.wrapPython;
|
||||
};
|
||||
|
||||
tortoisehg = callPackage ../applications/version-management/tortoisehg { };
|
||||
|
||||
toxic = callPackage ../applications/networking/instant-messengers/toxic { };
|
||||
|
||||
transcode = callPackage ../applications/audio/transcode { };
|
||||
|
@ -3717,6 +3717,23 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
iniparse = buildPythonPackage rec {
|
||||
|
||||
name = "iniparse-${version}";
|
||||
version = "0.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/i/iniparse/iniparse-${version}.tar.gz";
|
||||
sha256 = "0m60k46vr03x68jckachzsipav0bwhhnqb8715hm1cngs89fxhdb";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Accessing and Modifying INI files";
|
||||
license = licenses.mit;
|
||||
maintainers = [ "abcz2.uprola@gmail.com" ];
|
||||
};
|
||||
};
|
||||
|
||||
i3-py = buildPythonPackage rec {
|
||||
version = "0.6.4";
|
||||
name = "i3-py-${version}";
|
||||
@ -11537,6 +11554,37 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
qscintilla = pkgs.stdenv.mkDerivation rec {
|
||||
# TODO: Qt5 support
|
||||
name = "qscintilla-${version}";
|
||||
version = pkgs.qscintilla.version;
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = pkgs.qscintilla.src;
|
||||
|
||||
buildInputs = with pkgs; [ xorg.lndir qt4 pyqt4 python ];
|
||||
|
||||
preConfigure = ''
|
||||
mkdir -p $out
|
||||
lndir ${pkgs.pyqt4} $out
|
||||
cd Python
|
||||
${python.executable} ./configure-old.py \
|
||||
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
|
||||
--apidir $out/api/${python.libPrefix} \
|
||||
-n ${pkgs.qscintilla}/include \
|
||||
-o ${pkgs.qscintilla}/lib \
|
||||
--sipdir $out/share/sip
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python binding to QScintilla, Qt based text editing control";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = [ "abcz2.uprola@gmail.com" ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
qserve = buildPythonPackage rec {
|
||||
name = "qserve-0.2.8";
|
||||
disabled = isPy3k;
|
||||
|
Loading…
Reference in New Issue
Block a user