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

42 lines
1.0 KiB
Nix
Raw Normal View History

2019-04-21 05:02:45 -07:00
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, gupnp, mate, imagemagick, wrapGAppsHook }:
2017-08-17 20:16:18 -07:00
stdenv.mkDerivation rec {
pname = "caja-extensions";
2019-09-23 03:00:56 -07:00
version = "1.22.1";
2017-08-17 20:16:18 -07:00
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-23 03:00:56 -07:00
sha256 = "0xzhphzvaxbwyyp242pnhl5zjrkiznj90i0xjmy7pvi155pmp16h";
2017-08-17 20:16:18 -07:00
};
nativeBuildInputs = [
pkgconfig
intltool
wrapGAppsHook
2017-08-17 20:16:18 -07:00
];
buildInputs = [
gtk3
gupnp
mate.caja
mate.mate-desktop
2017-08-17 20:16:18 -07:00
imagemagick
];
postPatch = ''
for f in image-converter/caja-image-{resizer,rotator}.c; do
substituteInPlace $f --replace "/usr/bin/convert" "${imagemagick}/bin/convert"
done
'';
2017-08-17 20:16:18 -07:00
configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
meta = with stdenv.lib; {
description = "Set of extensions for Caja file manager";
homepage = https://mate-desktop.org;
2017-08-17 20:16:18 -07:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}