2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib, python3Packages, meld, subversion, gvfs, xdg-utils, gtk3 }:
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rabbitvcs";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rabbitvcs";
|
|
|
|
repo = "rabbitvcs";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-gVrdf8vQWAGORZqlTS/axs4U7aZlS8OAgPM3iKgqAtM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
buildInputs = [ gtk3 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
pythonPath = with python3Packages; [ configobj pygobject3 pysvn dulwich tkinter gvfs xdg-utils ];
|
2020-04-24 23:36:52 +00: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
|
|
|
|
sed -ie 's|/usr/bin/svnadmin|${subversion.out}/bin/svnadmin|' ./rabbitvcs/ui/create.py
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|