2015-09-16 23:23:41 +01:00
|
|
|
{ fetchFromGitHub, lib, python2Packages, meld, subversion, gvfs, xdg_utils }:
|
2016-02-19 12:12:11 +00:00
|
|
|
python2Packages.buildPythonApplication rec {
|
2015-09-16 23:23:41 +01:00
|
|
|
name = "rabbitvcs-${version}";
|
2018-02-27 20:59:54 +00:00
|
|
|
version = "0.17.1";
|
2015-09-16 23:23:41 +01:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rabbitvcs";
|
|
|
|
repo = "rabbitvcs";
|
|
|
|
rev = "v${version}";
|
2018-02-27 20:59:54 +00:00
|
|
|
sha256 = "01cr16zf3gzsci1hhfli79m34fcx5m1pvswl16rkxxn212yc9fhy";
|
2015-09-16 23:23:41 +01:00
|
|
|
};
|
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
pythonPath = with python2Packages; [ configobj dbus-python pygobject2 pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ];
|
2015-09-16 23:23:41 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -ie 's|if sys\.argv\[1\] == "install":|if False:|' ./setup.py
|
|
|
|
sed -ie "s|PREFIX = sys.prefix|PREFIX = \"$out\"|" ./setup.py
|
|
|
|
sed -ie 's|/usr/bin/meld|${meld}/bin/meld|' ./rabbitvcs/util/configspec/configspec.ini
|
2015-10-26 10:30:48 +00:00
|
|
|
sed -ie 's|/usr/bin/svnadmin|${subversion.out}/bin/svnadmin|' ./rabbitvcs/ui/create.py
|
2015-09-16 23:23:41 +01:00
|
|
|
sed -ie "s|/usr/share/doc|$out/share/doc|" ./rabbitvcs/ui/about.py
|
|
|
|
sed -ie "s|gnome-open|xdg-open|" ./rabbitvcs/util/helper.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "cli" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $cli/bin
|
|
|
|
cp clients/cli/rabbitvcs $cli/bin
|
|
|
|
wrapPythonProgramsIn $cli "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2018-01-08 07:35:23 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2015-09-16 23:23:41 +01:00
|
|
|
meta = {
|
|
|
|
description = "Graphical tools for working with version control systems";
|
|
|
|
homepage = http://rabbitvcs.org/;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.mathnerd314 ];
|
|
|
|
};
|
|
|
|
}
|