summary refs log tree commit diff
path: root/pkgs/desktops/xfce/thunar-plugins/dropbox/default.nix
blob: b86199c5012b82d22d6805664588781ecdc6d7ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchurl, pkgconfig
, gtk
, thunar-bare, python2, hicolor-icon-theme
}:

stdenv.mkDerivation rec {
  p_name  = "thunar-dropbox-plugin";
  ver_maj = "0.2";
  ver_min = "1";
  name = "${p_name}-${ver_maj}.${ver_min}";

  src = fetchurl {
    url = "http://softwarebakery.com/maato/files/thunar-dropbox/thunar-dropbox-${ver_maj}.${ver_min}.tar.bz2";
    sha256 = "08vhzzzwshyz371yl7fzfylmhvchhv3s5kml3dva4v39jhvrpnkf";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [
    gtk
    thunar-bare python2 hicolor-icon-theme
  ];

  configurePhase = "python2 waf configure --prefix=$out";

  buildPhase = "python2 waf";

  installPhase = ''
    python2 waf install
  '';

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = http://softwarebakery.com/maato/thunar-dropbox.html;
    description = "A plugin for thunar that adds context-menu items from dropbox";
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}