nixpkgs/pkgs/desktops/xfce/thunar-plugins/dropbox/default.nix
Vladimír Čunát 735f0f2ca8 thunar-dropbox-plugin: fixup after #9935
Close #9935.
I don't think it's good to split thunarx into a separate derivation in
this way. We would have the library and associated stuff twice and two
expressions, etc. Distributions do these things by an analogy to multiple-output
derivation (Debian does, for example), so we could use that, but it
doesn't seem important in this case and would be better after #7701 anyway.
2015-09-23 19:19:31 +02:00

41 lines
957 B
Nix

{ stdenv, fetchurl, pkgconfig
, gtk
, thunar, python2
}:
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";
};
buildInputs = [
pkgconfig
gtk
thunar python2
];
configurePhase = "python2 waf configure --prefix=$out";
buildPhase = "python2 waf";
installPhase = ''
python2 waf install
'';
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
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;
};
}