2019-04-21 15:02:45 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, gupnp, mate, imagemagick, wrapGAppsHook }:
|
2017-08-18 06:16:18 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "caja-extensions";
|
2019-09-23 13:00:56 +03:00
|
|
|
version = "1.22.1";
|
2017-08-18 06:16:18 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-14 01:37:37 +03:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-23 13:00:56 +03:00
|
|
|
sha256 = "0xzhphzvaxbwyyp242pnhl5zjrkiznj90i0xjmy7pvi155pmp16h";
|
2017-08-18 06:16:18 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
2018-01-08 19:54:07 +03:00
|
|
|
wrapGAppsHook
|
2017-08-18 06:16:18 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gupnp
|
2018-02-14 01:44:07 +03:00
|
|
|
mate.caja
|
|
|
|
mate.mate-desktop
|
2017-08-18 06:16:18 +03: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 02:25:45 +03:00
|
|
|
|
2017-08-18 06:16:18 +03: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 02:25:45 +03:00
|
|
|
homepage = https://mate-desktop.org;
|
2017-08-18 06:16:18 +03:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|