about summary refs log tree commit diff
path: root/pkgs/applications/graphics/gimp
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-09-03 17:31:10 +0000
committerLudovic Courtès <ludo@gnu.org>2011-09-03 17:31:10 +0000
commitdb867607cb3e0838a00ded4d52bb97dfc3e855a7 (patch)
treea25972e21c1726fd492cc2be28d90f94148cda46 /pkgs/applications/graphics/gimp
parent2c0eddaeaa45d445542dcbcf9cc214ae754aadfd (diff)
downloadnixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar.gz
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar.bz2
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar.lz
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar.xz
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.tar.zst
nixlib-db867607cb3e0838a00ded4d52bb97dfc3e855a7.zip
Add GimpLensfun.
svn path=/nixpkgs/trunk/; revision=28997
Diffstat (limited to 'pkgs/applications/graphics/gimp')
-rw-r--r--pkgs/applications/graphics/gimp/plugins/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix
index f988ddf8209a..3c900ca1eba2 100644
--- a/pkgs/applications/graphics/gimp/plugins/default.nix
+++ b/pkgs/applications/graphics/gimp/plugins/default.nix
@@ -195,6 +195,35 @@ rec {
     ";
   };
 
+  gimplensfun = pluginDerivation rec {
+    name = "gimplensfun-0.1.1";
+
+    src = fetchurl {
+      url = "http://lensfun.sebastiankraft.net/${name}.tar.gz";
+      sha256 = "0kr296n4k7gsjqg1abmvpysxi88iq5wrzdpcg7vm7l1ifvbs972q";
+    };
+
+    patchPhase = '' sed -i Makefile -e's|/usr/bin/g++|g++|' '';
+
+    buildInputs = [ gimp pkgconfig glib gimp.gtk pkgs.lensfun pkgs.exiv2 ];
+
+    installPhase = "
+      installPlugins gimplensfun
+      ensureDir $out/bin
+      cp gimplensfun $out/bin
+    ";
+
+    meta = {
+      description = "GIMP plugin to correct lens distortion using the lensfun library and database";
+
+      homepage = http://lensfun.sebastiankraft.net/;
+
+      license = "GPLv3+";
+      maintainers = [ stdenv.lib.maintainers.ludo ];
+      platforms = stdenv.lib.platforms.gnu;
+    };
+  };
+
   /* =============== simple script files ==================== */
 
   # also have a look at enblendenfuse in all-packages.nix