2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, gupnp
|
|
|
|
, mate
|
|
|
|
, imagemagick
|
|
|
|
, wrapGAppsHook
|
|
|
|
, mateUpdateScript
|
|
|
|
, glib
|
|
|
|
, substituteAll
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "caja-extensions";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "1.26.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2022-09-11 15:47:08 +00:00
|
|
|
sha256 = "WJwZ4/oQJC1iOaXMuVhVmENqVuvpTS6ypQtZUMzh1SA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gupnp
|
|
|
|
mate.caja
|
|
|
|
mate.mate-desktop
|
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-gsettings.patch;
|
2022-11-21 17:40:18 +00:00
|
|
|
caja_gsetttings_path = glib.getSchemaPath mate.caja;
|
|
|
|
desktop_gsetttings_path = glib.getSchemaPath mate.mate-desktop;
|
2022-04-15 01:41:22 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2022-04-15 01:41:22 +00:00
|
|
|
substituteInPlace open-terminal/caja-open-terminal.c --subst-var-by \
|
|
|
|
GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
substituteInPlace sendto/caja-sendto-command.c --subst-var-by \
|
|
|
|
GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
substituteInPlace wallpaper/caja-wallpaper-extension.c --subst-var-by \
|
|
|
|
GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
for f in image-converter/caja-image-{resizer,rotator}.c; do
|
|
|
|
substituteInPlace $f --replace "/usr/bin/convert" "${imagemagick}/bin/convert"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname; };
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Set of extensions for Caja file manager";
|
|
|
|
homepage = "https://mate-desktop.org";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = teams.mate.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|