Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
replaceVars,
pkg-config,
gobject-introspection,
gdk-pixbuf,
caja,
gtk3,
python3,
dropbox,
mateUpdateScript,
}:
let
dropboxd = "${dropbox}/bin/dropbox";
in
stdenv.mkDerivation rec {
pname = "caja-dropbox";
version = "1.28.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "t0w4qZQlS9PPfLxxK8LsdRagypQqpleFJs29aqYgGWM=";
};
patches = [
(replaceVars ./fix-cli-paths.patch {
inherit dropboxd;
# patch context
DESKTOP_FILE_DIR = null;
})
];
strictDeps = true;
nativeBuildInputs = [
pkg-config
gobject-introspection
gdk-pixbuf
(python3.withPackages (
ps: with ps; [
docutils
pygobject3
]
))
];
buildInputs = [
caja
gtk3
python3
];
configureFlags = [ "--with-caja-extension-dir=$$out/lib/caja/extensions-2.0" ];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "Dropbox extension for Caja file manager";
homepage = "https://github.com/mate-desktop/caja-dropbox";
license = with licenses; [
gpl3Plus
cc-by-nd-30
];
platforms = platforms.unix;
teams = [ teams.mate ];
};
}