From b241732d8cd5c6b22bfd8f2a256d33790929f5c5 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Tue, 30 Jun 2009 16:14:34 +0000 Subject: [PATCH] adding ufraw (a standalone tool and gimp plugin to read raw data images) adding exposureBlend (gimp plugin) enabling gimpPlugins again. nix-env -qa \* --out-path suceeds svn path=/nixpkgs/trunk/; revision=16108 --- .../graphics/gimp/plugins/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix index afbab962cf9..396b1b78e6d 100644 --- a/pkgs/applications/graphics/gimp/plugins/default.nix +++ b/pkgs/applications/graphics/gimp/plugins/default.nix @@ -145,8 +145,44 @@ rec { }; }; + # this is more than a gimp plugin ! + # either load the raw image with gimp (and the import dialog will popup) + # or use the binary + ufraw = pluginDerivation { + name = "ufraw-0.15"; + buildInputs = [pkgs.lcms gimp] ++ gimp.buildInputs; + # --enable-mime - install mime files, see README for more information + # --enable-extras - build extra (dcraw, nikon-curve) executables + # --enable-dst-correction - enable DST correction for file timestamps. + # --enable-contrast - enable the contrast setting option. + # --enable-interp-none: enable 'None' interpolation (mostly for debugging). + # --with-lensfun: use the lensfun library - experimental feature, read this before using it. + # --with-prefix=PREFIX - use also PREFIX as an input prefix for the build + # --with-dosprefix=PREFIX - PREFIX in the the prefix in dos format (needed only for ms-window + configureFlags = "--enable-extras --enable-dst-correction --enable-contrast"; + + src = fetchurl { + url = mirror://sourceforge/ufraw/ufraw-0.15.tar.gz; + sha256 = "0cf3csksjkyl91zxhjnn74vc31l14nm6n1i02s76xdvvkk9ics8k"; + }; + installPhase = " + installPlugins ufraw-gimp + ensureDir $out/bin + cp ufraw $out/bin + "; + }; + /* =============== simple script files ==================== */ + # also have a look at enblendenfuse in all-packages.nix + exposureBlend = scriptDerivation { + name = "exposure-blend"; + src = fetchurl { + url = http://tir.astro.utoledo.edu/jdsmith/code/eb/exposure-blend.scm; + sha256 = "1b6c9wzpklqras4wwsyw3y3jp6fjmhnnskqiwm5sabs8djknfxla"; + }; + }; + lightning = scriptDerivation { name = "Lightning"; src = fetchurl { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 73120c767a7..489a3db11ec 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6365,7 +6365,7 @@ let python pygtk gettext xlibs intltool babl gegl; inherit (gnome) gtk libgtkhtml libart_lgpl; }; - # gimpPlugins = import ../applications/graphics/gimp/plugins { inherit pkgs gimp; }; + gimpPlugins = import ../applications/graphics/gimp/plugins { inherit pkgs gimp; }; gitAndTools = recurseIntoAttrs (import ../applications/version-management/git-and-tools { inherit pkgs;