2009-06-14 02:30:12 +01:00
|
|
|
# install these packages into your profile. Then add
|
|
|
|
# ~/.nix-profile/gimp-version-plugins to your plugin list you can find at
|
|
|
|
# preferences -> Folders -> Plug-ins
|
|
|
|
# same applies for the scripts
|
|
|
|
|
|
|
|
{ pkgs, gimp }:
|
|
|
|
let
|
2012-03-14 21:57:32 +00:00
|
|
|
inherit (pkgs) stdenv fetchurl pkgconfig glib;
|
2009-06-14 02:30:12 +01:00
|
|
|
targetPluginDir = "$out/${gimp.name}-plugins";
|
|
|
|
targetScriptDir = "$out/${gimp.name}-scripts";
|
|
|
|
prefix = "plugin-gimp-";
|
|
|
|
|
|
|
|
pluginDerivation = a: stdenv.mkDerivation ({
|
|
|
|
prePhases = "extraLib";
|
|
|
|
extraLib = ''
|
|
|
|
installScripts(){
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p ${targetScriptDir};
|
2009-06-14 02:30:12 +01:00
|
|
|
for p in "$@"; do cp "$p" ${targetScriptDir}; done
|
|
|
|
}
|
|
|
|
installPlugins(){
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p ${targetPluginDir};
|
2009-06-14 02:30:12 +01:00
|
|
|
for p in "$@"; do cp "$p" ${targetPluginDir}; done
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
// a
|
|
|
|
# don't call this gimp-* unless you want nix replace gimp by a plugin :-)
|
|
|
|
// { name = "${a.name}-${gimp.name}-plugin"; }
|
|
|
|
);
|
|
|
|
|
|
|
|
scriptDerivation = {name, src} : pluginDerivation {
|
|
|
|
inherit name; phases = "extraLib installPhase";
|
|
|
|
installPhase = "installScripts ${src}";
|
|
|
|
};
|
|
|
|
|
|
|
|
libLQR = pluginDerivation {
|
|
|
|
name = "liblqr-1-0.4.1";
|
|
|
|
# required by lqrPlugin, you don't havet to install this lib explicitely
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ gimp ] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://registry.gimp.org/files/liblqr-1-0.4.1.tar.bz2;
|
|
|
|
sha256 = "02g90wag7xi5rjlmwq8h0qs666b1i2sa90s4303hmym40il33nlz";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
rec {
|
2010-02-11 15:08:05 +00:00
|
|
|
gap = pluginDerivation {
|
|
|
|
/* menu:
|
|
|
|
Video
|
|
|
|
*/
|
|
|
|
name = "gap-2.6.0";
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ gimp pkgconfig glib pkgs.intltool gimp.gtk ] ++ gimp.nativeBuildInputs;
|
2010-02-11 15:08:05 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/gimp-gap-2.6.0.tar.bz2;
|
|
|
|
sha256 = "1jic7ixcmsn4kx2cn32nc5087rk6g8xsrz022xy11yfmgvhzb0ql";
|
|
|
|
};
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's,^\(GIMP_PLUGIN_DIR=\).*,\1'"$out/${gimp.name}-plugins", \
|
|
|
|
-e 's,^\(GIMP_DATA_DIR=\).*,\1'"$out/share/${gimp.name}", -i configure
|
|
|
|
'';
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-02-11 15:08:05 +00:00
|
|
|
description = "The GIMP Animation Package";
|
|
|
|
homepage = http://www.gimp.org;
|
|
|
|
# The main code is given in GPLv3, but it has ffmpeg in it, and I think ffmpeg license
|
|
|
|
# falls inside "free".
|
2015-05-27 20:56:04 +01:00
|
|
|
license = with licenses; [ gpl3 free ];
|
2010-02-11 15:08:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-11-10 19:16:37 +00:00
|
|
|
fourier = pluginDerivation rec {
|
2009-06-14 02:30:12 +01:00
|
|
|
/* menu:
|
|
|
|
Filters/Generic/FFT Forward
|
|
|
|
Filters/Generic/FFT Inverse
|
|
|
|
*/
|
2013-11-10 19:16:37 +00:00
|
|
|
name = "fourier-0.4.1";
|
|
|
|
buildInputs = [ gimp pkgs.fftw pkgconfig glib] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
postInstall = "fail";
|
|
|
|
installPhase = "installPlugins fourier";
|
|
|
|
src = fetchurl {
|
2013-11-10 19:16:37 +00:00
|
|
|
url = "http://registry.gimp.org/files/${name}.tar.gz";
|
|
|
|
sha256 = "1pr3y3zl9w8xs1circdrxpr98myz9m8wfzy022al79z4pdanwvs1";
|
2009-06-14 02:30:12 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-07-20 20:28:50 +01:00
|
|
|
focusblur = pluginDerivation rec {
|
|
|
|
/* menu:
|
|
|
|
Blur/Focus Blur
|
|
|
|
*/
|
|
|
|
name = "focusblur-3.2.6";
|
|
|
|
buildInputs = [ gimp pkgconfig pkgs.fftwSinglePrec ] ++ gimp.nativeBuildInputs;
|
|
|
|
patches = [ ./patches/focusblur-glib.patch ];
|
|
|
|
postInstall = "fail";
|
|
|
|
installPhase = "installPlugins src/focusblur";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://registry.gimp.org/files/${name}.tar.bz2";
|
|
|
|
sha256 = "1gqf3hchz7n7v5kpqkhqh8kwnxbsvlb5cr2w2n7ngrvl56f5xs1h";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-06-14 02:30:12 +01:00
|
|
|
resynthesizer = pluginDerivation {
|
|
|
|
/* menu:
|
|
|
|
Filters/Map/Resynthesize
|
|
|
|
Filters/Enhance/Smart enlarge
|
|
|
|
Filters/Enhance/Smart sharpen
|
|
|
|
Filters/Enhance/Smart remove selection
|
|
|
|
*/
|
|
|
|
name = "resynthesizer-0.16";
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ gimp pkgs.fftw ] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.logarithmic.net/pfh-files/resynthesizer/resynthesizer-0.16.tar.gz;
|
|
|
|
sha256 = "1k90a1jzswxmajn56rdxa4r60v9v34fmqsiwfdxqcvx3yf4yq96x";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
installPlugins resynth
|
|
|
|
installScripts smart-{enlarge,remove}.scm
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
|
|
|
texturize = pluginDerivation {
|
|
|
|
name = "texturize-2.1";
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ gimp ] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
src = fetchurl {
|
2013-07-14 02:17:07 +01:00
|
|
|
url = mirror://sourceforge/gimp-texturize/texturize-2.1_src.tgz;
|
2009-06-14 02:30:12 +01:00
|
|
|
sha256 = "0cdjq25g3yfxx6bzx6nid21kq659s1vl9id4wxyjs2dhcv229cg3";
|
|
|
|
};
|
2013-11-10 19:00:37 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i '/.*gimpimage_pdb.h.*/ d' src/*.c*
|
|
|
|
'';
|
2009-06-14 02:30:12 +01:00
|
|
|
installPhase = "installPlugins src/texturize";
|
|
|
|
};
|
|
|
|
|
|
|
|
waveletSharpen = pluginDerivation {
|
|
|
|
/* menu:
|
|
|
|
Filters/Enhance/Wavelet sharpen
|
|
|
|
*/
|
|
|
|
name = "wavelet-sharpen-0.1.2";
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ gimp ] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://registry.gimp.org/files/wavelet-sharpen-0.1.2.tar.gz;
|
|
|
|
sha256 = "0vql1k67i21g5ivaa1jh56rg427m0icrkpryrhg75nscpirfxxqw";
|
|
|
|
};
|
|
|
|
installPhase = "installPlugins src/wavelet-sharpen"; # TODO translations are not copied .. How to do this on nix?
|
|
|
|
};
|
|
|
|
|
|
|
|
lqrPlugin = pluginDerivation {
|
|
|
|
/* menu:
|
|
|
|
Layer/Liquid Rescale
|
|
|
|
*/
|
|
|
|
name = "lqr-plugin-0.6.1";
|
2012-12-28 18:20:09 +00:00
|
|
|
buildInputs = [ pkgconfig libLQR gimp ] ++ gimp.nativeBuildInputs;
|
2009-06-14 02:30:12 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://registry.gimp.org/files/gimp-lqr-plugin-0.6.1.tar.bz2;
|
|
|
|
sha256 = "00hklkpcimcbpjly4rjhfipaw096cpy768g9wixglwrsyqhil7l9";
|
|
|
|
};
|
2012-01-18 20:16:00 +00:00
|
|
|
#postInstall = ''mkdir -p $out/nix-support; echo "${libLQR}" > "$out/nix-support/propagated-user-env-packages"'';
|
2009-06-14 02:30:12 +01:00
|
|
|
installPhase = "installPlugins src/gimp-lqr-plugin";
|
|
|
|
};
|
|
|
|
|
2009-06-26 17:52:35 +01:00
|
|
|
gmic =
|
2015-07-16 17:00:45 +01:00
|
|
|
pluginDerivation rec {
|
|
|
|
name = "gmic-1.6.5.0";
|
|
|
|
|
|
|
|
buildInputs = [pkgconfig pkgs.fftw pkgs.opencv gimp] ++ gimp.nativeBuildInputs;
|
|
|
|
|
2009-06-26 17:52:35 +01:00
|
|
|
src = fetchurl {
|
2015-07-16 17:00:45 +01:00
|
|
|
url = http://gmic.eu/files/source/gmic_1.6.5.0.tar.gz;
|
|
|
|
sha256 = "1vb6zm5zpqfnzxjvb9yfvczaqacm55rf010ib0yk9f28b17qrjgb";
|
2009-06-26 17:52:35 +01:00
|
|
|
};
|
2015-07-16 17:00:45 +01:00
|
|
|
|
2013-11-10 22:33:45 +00:00
|
|
|
sourceRoot = "${name}/src";
|
2015-07-16 17:00:45 +01:00
|
|
|
|
|
|
|
buildFlags = "gimp";
|
|
|
|
|
2013-11-10 22:33:45 +00:00
|
|
|
installPhase = "installPlugins gmic_gimp";
|
2015-07-16 17:00:45 +01:00
|
|
|
|
2014-11-06 00:44:33 +00:00
|
|
|
meta = {
|
2009-06-26 17:52:35 +01:00
|
|
|
description = "script language for image processing which comes with its open-source interpreter";
|
2015-07-16 17:00:45 +01:00
|
|
|
homepage = http://gmic.eu/gimp.shtml;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.cecill20;
|
2009-06-26 17:52:35 +01:00
|
|
|
/*
|
|
|
|
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.
|
|
|
|
[ ... ] */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-06-30 17:14:34 +01:00
|
|
|
# this is more than a gimp plugin !
|
|
|
|
# either load the raw image with gimp (and the import dialog will popup)
|
|
|
|
# or use the binary
|
2013-11-10 16:44:02 +00:00
|
|
|
ufraw = pluginDerivation rec {
|
|
|
|
name = "ufraw-0.19.2";
|
|
|
|
buildInputs = [pkgs.gtkimageview pkgs.lcms gimp] ++ gimp.nativeBuildInputs;
|
2009-06-30 17:14:34 +01:00
|
|
|
# --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).
|
2014-11-06 00:44:33 +00:00
|
|
|
# --with-lensfun: use the lensfun library - experimental feature, read this before using it.
|
2009-06-30 17:14:34 +01:00
|
|
|
# --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 {
|
2013-11-10 16:44:02 +00:00
|
|
|
url = "mirror://sourceforge/ufraw/${name}.tar.gz";
|
|
|
|
sha256 = "1lxba7pb3vcsq94dwapg9bk9mb3ww6r3pvvcyb0ah5gh2sgzxgkk";
|
2009-06-30 17:14:34 +01:00
|
|
|
};
|
|
|
|
installPhase = "
|
|
|
|
installPlugins ufraw-gimp
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2009-06-30 17:14:34 +01:00
|
|
|
cp ufraw $out/bin
|
|
|
|
";
|
|
|
|
};
|
|
|
|
|
2011-09-03 18:31:10 +01:00
|
|
|
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
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-09-03 18:31:10 +01:00
|
|
|
cp gimplensfun $out/bin
|
|
|
|
";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GIMP plugin to correct lens distortion using the lensfun library and database";
|
|
|
|
|
|
|
|
homepage = http://lensfun.sebastiankraft.net/;
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2011-09-03 18:31:10 +01:00
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-06-14 02:30:12 +01:00
|
|
|
/* =============== simple script files ==================== */
|
|
|
|
|
2015-10-06 14:24:20 +01:00
|
|
|
# also have a look at enblendenfuse in all-packages.nix
|
2009-06-30 17:14:34 +01:00
|
|
|
exposureBlend = scriptDerivation {
|
|
|
|
name = "exposure-blend";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://tir.astro.utoledo.edu/jdsmith/code/eb/exposure-blend.scm;
|
|
|
|
sha256 = "1b6c9wzpklqras4wwsyw3y3jp6fjmhnnskqiwm5sabs8djknfxla";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-06-14 02:30:12 +01:00
|
|
|
lightning = scriptDerivation {
|
|
|
|
name = "Lightning";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://registry.gimp.org/files/Lightning.scm;
|
|
|
|
sha256 = "c14a8f4f709695ede3f77348728a25b3f3ded420da60f3f8de3944b7eae98a49";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* space in name trouble ?
|
|
|
|
|
|
|
|
rainbowPlasma = scriptDerivation {
|
|
|
|
# http://registry.gimp.org/node/164
|
|
|
|
name = "rainbow-plasma";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://registry.gimp.org/files/Rainbow Plasma.scm";
|
|
|
|
sha256 = "34308d4c9441f9e7bafa118af7ec9540f10ea0df75e812e2f3aa3fd7b5344c23";
|
|
|
|
name = "Rainbow-Plasma.scm"; # nix doesn't like spaces, does it?
|
|
|
|
};
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* doesn't seem to be working :-(
|
|
|
|
lightningGate = scriptDerivation {
|
|
|
|
# http://registry.gimp.org/node/153
|
|
|
|
name = "lightning-gate";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://registry.gimp.org/files/LightningGate.scm;
|
|
|
|
sha256 = "181w1zi9a99kn2mfxjp43wkwcgw5vbb6iqjas7a9mhm8p04csys2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
|
|
|
}
|