2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, substituteAll
|
2020-04-24 23:36:52 +00:00
|
|
|
, pkgconfig, gobject-introspection, gdk-pixbuf
|
|
|
|
, gtk3, mate, python3, dropbox }:
|
|
|
|
|
|
|
|
let
|
|
|
|
dropboxd = "${dropbox}/bin/dropbox";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "caja-dropbox";
|
|
|
|
version = "1.24.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1rcn82q58mv9hn5xamvzay2pw1szfk6zns94362476fcp786lji2";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-cli-paths.patch;
|
|
|
|
inherit dropboxd;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
gobject-introspection
|
|
|
|
gdk-pixbuf
|
|
|
|
(python3.withPackages (ps: with ps; [
|
|
|
|
docutils
|
|
|
|
pygobject3
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
mate.caja
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Dropbox extension for Caja file manager";
|
|
|
|
homepage = "https://github.com/mate-desktop/caja-dropbox";
|
|
|
|
license = with licenses; [ gpl3 cc-by-nd-30 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|