2018-01-08 16:54:07 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, dbus_glib, gupnp, caja, mate-desktop, imagemagick, wrapGAppsHook }:
|
2017-08-18 03:16:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "caja-extensions-${version}";
|
|
|
|
version = "${major-ver}.${minor-ver}";
|
|
|
|
major-ver = "1.18";
|
2017-12-24 01:54:40 +00:00
|
|
|
minor-ver = "2";
|
2017-08-18 03:16:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pub.mate-desktop.org/releases/${major-ver}/${name}.tar.xz";
|
2017-12-24 01:54:40 +00:00
|
|
|
sha256 = "065j3dyk7zp35rfvxxsdglx30i3xrma4d4saf7mn1rn1akdfgaba";
|
2017-08-18 03:16:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
2018-01-08 16:54:07 +00:00
|
|
|
wrapGAppsHook
|
2017-08-18 03:16:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
dbus_glib
|
|
|
|
gupnp
|
2018-01-08 16:54:07 +00:00
|
|
|
caja
|
|
|
|
mate-desktop
|
2017-08-18 03:16:18 +00:00
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
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" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Set of extensions for Caja file manager";
|
|
|
|
homepage = http://mate-desktop.org;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|