about summary refs log tree commit diff
path: root/pkgs/desktops/mate/caja-extensions
diff options
context:
space:
mode:
authorromildo <malaquias@gmail.com>2017-08-18 00:16:18 -0300
committerromildo <malaquias@gmail.com>2017-08-18 00:16:18 -0300
commit1a0465290033818638adc56c3c35b6724eaa39ac (patch)
tree66d3a2f4341909bb34963df5b36c121c684dfaec /pkgs/desktops/mate/caja-extensions
parent9074440f11c49134f65be9fd08a89848a894eaa0 (diff)
caja-extensions: init at 1.18.1
Diffstat (limited to 'pkgs/desktops/mate/caja-extensions')
-rw-r--r--pkgs/desktops/mate/caja-extensions/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/desktops/mate/caja-extensions/default.nix b/pkgs/desktops/mate/caja-extensions/default.nix
new file mode 100644
index 0000000000000..ab2831159f90f
--- /dev/null
+++ b/pkgs/desktops/mate/caja-extensions/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, fetchurl, pkgconfig, intltool, gtk3, dbus_glib, gupnp, mate, imagemagick }:
+
+stdenv.mkDerivation rec {
+  name = "caja-extensions-${version}";
+  version = "${major-ver}.${minor-ver}";
+  major-ver = "1.18";
+  minor-ver = "1";
+
+  src = fetchurl {
+    url = "http://pub.mate-desktop.org/releases/${major-ver}/${name}.tar.xz";
+    sha256 = "0hgala7zkfsa60jflq3s4n9yd11dhfdcla40l83cmgc3r1az7cmw";
+  };
+
+  nativeBuildInputs = [
+    pkgconfig
+    intltool
+  ];
+
+  buildInputs = [
+    gtk3
+    dbus_glib
+    gupnp
+    mate.caja
+    mate.mate-desktop
+    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 ];
+  };
+}