git.iko.soy/typeable/nixpkgs
on master help sign in
xfce.thunar-dropbox-plugin: init at 0.2.1

A thunar dropbox plugin that allows to copy links and add files to dropbox. Depends on new `xfce.thunarx-2-dev` plugin sdk package instead of thunar. Doing so seem standard on other distributions such as Ubuntu and narrows depedencies to only the sdk headers (i.e.: what's needed by plugins). Note that replacing the `xfce.thunarx-2-dev` dependency directly by `xfce.thunar` work equally well. However it now would be impossible for the `thunar` executable to depend on the plugin. Tests: - When dropbox daemon active, functionalities are added to right click on file and folders menu. - When dropbox daemon inactive, functionalities **not** added to menu. - Successfully copied a dropbox link. - Successfully moved a file to dropbox.

commit8d2e4761c8eeabcdf07825af7d73989f36ad8016 authorRaymond Gauthier <jraygauthier@gmail.com> dateFri 18 Sep 2015, 23:07 (11 years ago) parent272cd6f
3 files changed+83
pkgs/desktops/xfce/core/thunarx-2-dev.nix+38 pkgs/desktops/xfce/default.nix+3 pkgs/desktops/xfce/thunar-plugins/dropbox/default.nix+42
pkgs/desktops/xfce/core/thunarx-2-dev.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, pkgconfig, intltool
2+, gtk, dbus_glib, libstartup_notification, libnotify, libexif, pcre, udev
3+, exo, libxfce4util
4+, xfconf, libxfce4ui
5+}:
6+
7+stdenv.mkDerivation rec {
8+ host_p_name = "thunar";
9+ p_name = "thunarx-2-dev";
10+ ver_maj = "1.6";
11+ ver_min = "6";
12+
13+ src = fetchurl {
14+ url = "mirror://xfce/src/xfce/${host_p_name}/${ver_maj}/Thunar-${ver_maj}.${ver_min}.tar.bz2";
15+ sha256 = "1cl9v3rdzipyyxml3pyrzspxfmmssz5h5snpj18irq4an42539dr";
16+ };
17+ name = "${p_name}-${ver_maj}.${ver_min}";
18+
19+ preBuild = ''
20+ cd thunarx
21+ '';
22+
23+ buildInputs = [
24+ pkgconfig intltool
25+ gtk dbus_glib libstartup_notification libnotify libexif pcre udev
26+ exo libxfce4util
27+ xfconf libxfce4ui
28+ ];
29+
30+ enableParallelBuilding = true;
31+
32+ meta = {
33+ homepage = http://thunar.xfce.org/;
34+ description = "Thunar Extension Framework";
35+ license = stdenv.lib.licenses.gpl2Plus;
36+ platforms = stdenv.lib.platforms.linux;
37+ };
38+}
pkgs/desktops/xfce/default.nix+3
@@ -25,8 +25,11 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
2525 libxfce4util = callPackage ./core/libxfce4util.nix { };
2626 libxfcegui4 = callPackage ./core/libxfcegui4.nix { };
2727 thunar = callPackage ./core/thunar.nix { };
28+ thunarx-2-dev = callPackage ./core/thunarx-2-dev.nix { };
2829 thunar_volman = callPackage ./core/thunar-volman.nix { }; # ToDo: probably inside Thunar now
2930 thunar_archive_plugin = callPackage ./core/thunar-archive-plugin.nix { };
31+ thunar-dropbox-plugin
32+ = callPackage ./thunar-plugins/dropbox { };
3033 tumbler = callPackage ./core/tumbler.nix { };
3134 xfce4panel = callPackage ./core/xfce4-panel.nix { }; # ToDo: impure plugins from /run/current-system/sw/lib/xfce4
3235 xfce4session = callPackage ./core/xfce4-session.nix { };
pkgs/desktops/xfce/thunar-plugins/dropbox/default.nixnew file+42
@@ -0,0 +1,42 @@
1+{ stdenv, fetchurl, pkgconfig
2+, gtk
3+, thunarx-2-dev, python2
4+}:
5+
6+stdenv.mkDerivation rec {
7+ p_name = "thunar-dropbox-plugin";
8+ ver_maj = "0.2";
9+ ver_min = "1";
10+ name = "${p_name}-${ver_maj}.${ver_min}";
11+
12+ src = fetchurl {
13+ url = "http://softwarebakery.com/maato/files/thunar-dropbox/thunar-dropbox-${ver_maj}.${ver_min}.tar.bz2";
14+ sha256 = "08vhzzzwshyz371yl7fzfylmhvchhv3s5kml3dva4v39jhvrpnkf";
15+ };
16+
17+ buildInputs = [
18+ pkgconfig
19+ gtk
20+ thunarx-2-dev python2
21+ ];
22+
23+ configurePhase = "python2 waf configure --prefix=$out";
24+
25+ buildPhase = "python2 waf";
26+
27+ installPhase = ''
28+ python2 waf install
29+ '';
30+
31+ preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
32+
33+
34+ enableParallelBuilding = true;
35+
36+ meta = {
37+ homepage = http://softwarebakery.com/maato/thunar-dropbox.html;
38+ description = "A plugin for thunar that adds context-menu items from dropbox";
39+ license = stdenv.lib.licenses.gpl3;
40+ platforms = stdenv.lib.platforms.linux;
41+ };
42+}