about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-17 18:05:58 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-17 18:05:58 +0300
commite8c1717ff488af06128210fba47d8ce917b53808 (patch)
tree29cc9fff9c0f08416d22b5ff87eb41410ab8f9e0
parent3a6774ab341752d9b4353cfef64a7139b1c844df (diff)
parentc3ed1b17ba76e3c7fa25e22894bc786184c42e8b (diff)
downloadnixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar.gz
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar.bz2
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar.lz
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar.xz
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.tar.zst
nixlib-e8c1717ff488af06128210fba47d8ce917b53808.zip
Merge pull request #9895 from Mathnerd314/rabbitvcs
rabbitvcs: init at 0.16
-rw-r--r--pkgs/applications/version-management/rabbitvcs/default.nix40
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/rabbitvcs/default.nix b/pkgs/applications/version-management/rabbitvcs/default.nix
new file mode 100644
index 000000000000..100e854f29b8
--- /dev/null
+++ b/pkgs/applications/version-management/rabbitvcs/default.nix
@@ -0,0 +1,40 @@
+{ fetchFromGitHub, lib, python2Packages, meld, subversion, gvfs, xdg_utils }:
+python2Packages.buildPythonPackage rec {
+  name = "rabbitvcs-${version}";
+  version = "0.16";
+  namePrefix = "";
+
+  src = fetchFromGitHub {
+    owner = "rabbitvcs";
+    repo = "rabbitvcs";
+    rev = "v${version}";
+    sha256 = "0964pdylrx4n9c9l8ncwv4q1p63y4hadb5v4pgvm0m2fah2jlkly";
+  };
+
+  pythonPath = with python2Packages; [ configobj dbus pygobject pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ];
+
+  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}/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"
+  '';
+
+  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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ec26214d599b..19e291593994 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12437,6 +12437,8 @@ let
     inherit (python34Packages) buildPythonPackage python pyqt5 jinja2 pygments pyyaml pypeg2;
   };
 
+  rabbitvcs = callPackage ../applications/version-management/rabbitvcs {};
+
   rakarrack = callPackage ../applications/audio/rakarrack {
     fltk = fltk13;
   };