nixpkgs/pkgs/desktops/mate/caja-extensions/default.nix

43 lines
1.0 KiB
Nix
Raw Normal View History

{ 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}";
version = "1.20.1";
2017-08-18 04:16:18 +01:00
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz";
sha256 = "01k7c3gw6rfd7vlch61zig22bvz40wlnalc5p3rz4d9i98fr643n";
2017-08-18 04:16:18 +01:00
};
nativeBuildInputs = [
pkgconfig
intltool
wrapGAppsHook
2017-08-18 04:16:18 +01:00
];
buildInputs = [
gtk3
dbus-glib
2017-08-18 04:16:18 +01:00
gupnp
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
'';
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 ];
};
}