2021-02-01 09:05:09 +01:00
|
|
|
{ fetchFromGitHub, lib, python3Packages, meld, subversion, gvfs, xdg-utils, gtk3 }:
|
2020-11-01 14:33:21 +01:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "rabbitvcs";
|
2020-11-01 14:33:21 +01:00
|
|
|
version = "0.18";
|
2015-09-17 00:23:41 +02:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rabbitvcs";
|
|
|
|
repo = "rabbitvcs";
|
|
|
|
rev = "v${version}";
|
2022-07-16 20:10:53 +02:00
|
|
|
hash = "sha256-gVrdf8vQWAGORZqlTS/axs4U7aZlS8OAgPM3iKgqAtM=";
|
2015-09-17 00:23:41 +02:00
|
|
|
};
|
|
|
|
|
2020-11-01 14:33:21 +01:00
|
|
|
buildInputs = [ gtk3 ];
|
2021-02-01 09:05:09 +01:00
|
|
|
pythonPath = with python3Packages; [ configobj pygobject3 pysvn dulwich tkinter gvfs xdg-utils ];
|
2015-09-17 00:23:41 +02: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 11:30:48 +01:00
|
|
|
sed -ie 's|/usr/bin/svnadmin|${subversion.out}/bin/svnadmin|' ./rabbitvcs/ui/create.py
|
2015-09-17 00:23:41 +02: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 08:35:23 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2015-09-17 00:23:41 +02:00
|
|
|
meta = {
|
|
|
|
description = "Graphical tools for working with version control systems";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://rabbitvcs.org/";
|
2015-09-17 00:23:41 +02:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.mathnerd314 ];
|
|
|
|
};
|
|
|
|
}
|