2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, dbus-glib, gupnp, mate, imagemagick, wrapGAppsHook }:
|
2017-08-18 04:16:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "caja-extensions-${version}";
|
2019-01-14 13:39:59 +00:00
|
|
|
version = "1.20.2";
|
2017-08-18 04:16:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-13 22:44:07 +00:00
|
|
|
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
|
2019-01-14 13:39:59 +00:00
|
|
|
sha256 = "14w1xd33ggn6wdzqvcmj8rqc68w4k094lai6mqrgmv1zljifydqz";
|
2017-08-18 04:16:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
2018-01-08 16:54:07 +00:00
|
|
|
wrapGAppsHook
|
2017-08-18 04:16:18 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
dbus-glib
|
2017-08-18 04:16:18 +01:00
|
|
|
gupnp
|
2018-02-13 22:44:07 +00:00
|
|
|
mate.caja
|
|
|
|
mate.mate-desktop
|
2017-08-18 04:16:18 +01:00
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in image-converter/caja-image-{resizer,rotator}.c; do
|
|
|
|
substituteInPlace $f --replace "/usr/bin/convert" "${imagemagick}/bin/convert"
|
|
|
|
done
|
|
|
|
'';
|
2019-04-15 00:25:45 +01:00
|
|
|
|
2017-08-18 04:16:18 +01:00
|
|
|
configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Set of extensions for Caja file manager";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://mate-desktop.org;
|
2017-08-18 04:16:18 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|