Merge pull request #62617 from alexarice/caja-dropbox
caja-dropbox: fix python dependency
This commit is contained in:
commit
7f6f5e06d6
@ -1,31 +1,49 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, gtk3, mate, python3Packages }:
|
{ stdenv, fetchurl, substituteAll
|
||||||
|
, pkgconfig, gobject-introspection, gdk_pixbuf
|
||||||
|
, gtk3, mate, python3, dropbox }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dropboxd = "${dropbox}/bin/dropbox";
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "caja-dropbox-${version}";
|
pname = "caja-dropbox";
|
||||||
version = "1.22.1";
|
version = "1.22.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "18cnd3yw2ingvl38mhmfbl5k0kfg8pzcf2649j00i6v90cwiril5";
|
sha256 = "18cnd3yw2ingvl38mhmfbl5k0kfg8pzcf2649j00i6v90cwiril5";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-cli-paths.patch;
|
||||||
|
inherit dropboxd;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
gobject-introspection
|
||||||
|
gdk_pixbuf
|
||||||
|
(python3.withPackages (ps: with ps; [
|
||||||
|
docutils
|
||||||
|
pygobject3
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3
|
gtk3
|
||||||
mate.caja
|
mate.caja
|
||||||
python3Packages.python
|
python3
|
||||||
python3Packages.pygtk
|
|
||||||
python3Packages.docutils
|
|
||||||
];
|
];
|
||||||
|
|
||||||
configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
|
configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Dropbox extension for Caja file manager";
|
description = "Dropbox extension for Caja file manager";
|
||||||
homepage = https://github.com/mate-desktop/caja-dropbox;
|
homepage = "https://github.com/mate-desktop/caja-dropbox";
|
||||||
license = with licenses; [ gpl3 cc-by-nd-30 ];
|
license = with licenses; [ gpl3 cc-by-nd-30 ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.romildo ];
|
maintainers = [ maintainers.romildo ];
|
||||||
|
11
pkgs/desktops/mate/caja-dropbox/fix-cli-paths.patch
Normal file
11
pkgs/desktops/mate/caja-dropbox/fix-cli-paths.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/caja-dropbox.in
|
||||||
|
+++ b/caja-dropbox.in
|
||||||
|
@@ -70,7 +70,7 @@ DOWNLOADING = "Downloading Dropbox... %d%%"
|
||||||
|
UNPACKING = "Unpacking Dropbox... %d%%"
|
||||||
|
|
||||||
|
PARENT_DIR = os.path.expanduser("~")
|
||||||
|
-DROPBOXD_PATH = "%s/.dropbox-dist/dropboxd" % PARENT_DIR
|
||||||
|
+DROPBOXD_PATH = "@dropboxd@"
|
||||||
|
DESKTOP_FILE = "@DESKTOP_FILE_DIR@/caja-dropbox.desktop"
|
||||||
|
|
||||||
|
enc = locale.getpreferredencoding()
|
Loading…
Reference in New Issue
Block a user