about summary refs log tree commit diff
path: root/pkgs/applications/graphics/gimp
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-06-26 16:52:35 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-06-26 16:52:35 +0000
commit9dbc0bd61473fb82516a9515c1d984da7ce1fb5b (patch)
treef92a74180e0391f27b6a7a719126b158c36c386d /pkgs/applications/graphics/gimp
parentd095fa0dd95fd09791b640a8d434ba172f6b962b (diff)
downloadnixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar.gz
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar.bz2
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar.lz
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar.xz
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.tar.zst
nixlib-9dbc0bd61473fb82516a9515c1d984da7ce1fb5b.zip
adding gmic (a tool which can denoise images and much more)
svn path=/nixpkgs/trunk/; revision=16057
Diffstat (limited to 'pkgs/applications/graphics/gimp')
-rw-r--r--pkgs/applications/graphics/gimp/plugins/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix
index 67658542eb4f..afbab962cf9b 100644
--- a/pkgs/applications/graphics/gimp/plugins/default.nix
+++ b/pkgs/applications/graphics/gimp/plugins/default.nix
@@ -118,6 +118,33 @@ rec {
     installPhase = "installPlugins src/gimp-lqr-plugin";
   };
 
+  # this is more than a gimp plugin !
+  # it can be made to compile the gimp plugin only though..
+  gmic =
+  let imagemagick = pkgs.imagemagickBig; # maybe the non big version is enough?
+  in pluginDerivation {
+      name = "gmic-1.3.2.0";
+      buildInputs = [ imagemagick pkgconfig gimp pkgs.fftwSinglePrec ] ++ gimp.buildInputs;
+      src = fetchurl {
+        url = http://dfn.dl.sourceforge.net/sourceforge/gmic/gmic_1.3.2.0.tar.gz;
+        sha256 = "0mxq664vzzc2l6k6sqm9syp34mihhi262i6fixk1g12lmc28797h";
+      };
+      preConfigure = ''
+        export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${imagemagick}/include/ImageMagick"
+      '';
+      installPhase = "installPlugins src/gmic4gimp";
+      meta = { 
+        description = "script language for image processing which comes with its open-source interpreter";
+        homepage = http://gmic.sourceforge.net/repository.shtml;
+        license = "CeCILL FREE SOFTWARE LICENSE AGREEMENT";
+        /*
+        The purpose of this Free Software license agreement is to grant users
+        the right to modify and redistribute the software governed by this
+        license within the framework of an open source distribution model.
+        [ ... ] */
+      };
+  };
+
   /* =============== simple script files ==================== */
 
   lightning = scriptDerivation {