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

42 lines
1 KiB
Nix
Raw Normal View History

2019-04-21 14:02:45 +02:00
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, gupnp, mate, imagemagick, wrapGAppsHook }:
2017-08-18 05:16:18 +02:00
stdenv.mkDerivation rec {
pname = "caja-extensions";
2020-02-12 18:51:18 +01:00
version = "1.24.0";
2017-08-18 05:16:18 +02:00
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-12 18:51:18 +01:00
sha256 = "175v5c05nrdliya23rbqma49alldq67dklmvpq18nq71sfry4pp6";
2017-08-18 05:16:18 +02:00
};
nativeBuildInputs = [
pkgconfig
intltool
wrapGAppsHook
2017-08-18 05:16:18 +02:00
];
buildInputs = [
gtk3
gupnp
mate.caja
mate.mate-desktop
2017-08-18 05:16:18 +02: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-18 05:16:18 +02:00
configureFlags = [ "--with-cajadir=$$out/lib/caja/extensions-2.0" ];
meta = with stdenv.lib; {
description = "Set of extensions for Caja file manager";
2020-02-12 18:51:18 +01:00
homepage = "https://mate-desktop.org";
2017-08-18 05:16:18 +02:00
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}