git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #37915 from jtojnar/gimp-2.10

GIMP 2.10

commit0e1147d13786c56ac30762d945130414eea479a7 authorJan Tojnar <jtojnar@gmail.com> dateSun 29 Apr 2018, 15:12 (9 years ago) parenta3b69a55c4b687
11 files changed+247−146
pkgs/applications/graphics/gimp/2.8.nix−57 pkgs/applications/graphics/gimp/default.nix+95 pkgs/applications/graphics/gimp/plugins/default.nix+10−53 pkgs/applications/graphics/gimp/wrapper.nix+4−3 pkgs/applications/graphics/sane/xsane.nix+3−3 pkgs/applications/graphics/ufraw/default.nix+20−4 pkgs/development/libraries/gdk-pixbuf/default.nix+3 pkgs/development/libraries/gegl/4.0.nix+38 pkgs/development/libraries/mypaint-brushes/default.nix+35 pkgs/tools/graphics/gmic/default.nix+30−21 pkgs/top-level/all-packages.nix+9−5
pkgs/applications/graphics/gimp/2.8.nixdeleted−57
@@ -1,57 +0,0 @@
1−{ stdenv, fetchurl, pkgconfig, intltool, babl, gegl, gtk2, glib, gdk_pixbuf
2−, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, libtiff
3−, webkit, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, jasper
4−, python2Packages, libexif, gettext, xorg
5−, AppKit, Cocoa, gtk-mac-integration }:
6−
7−let
8− inherit (python2Packages) pygtk wrapPython python;
9−in stdenv.mkDerivation rec {
10− name = "gimp-${version}";
11− version = "2.8.22";
12−
13− # This declarations for `gimp-with-plugins` wrapper,
14− # (used for determining $out/lib/gimp/${majorVersion}/ paths)
15− majorVersion = "2.0";
16− targetPluginDir = "$out/lib/gimp/${majorVersion}/plug-ins";
17− targetScriptDir = "$out/lib/gimp/${majorVersion}/scripts";
18−
19− src = fetchurl {
20− url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
21− sha256 = "12k3lp938qdc9cqj29scg55f3bb8iav2fysd29w0s49bqmfa71wi";
22− };
23−
24− buildInputs =
25− [ pkgconfig intltool babl gegl gtk2 glib gdk_pixbuf pango cairo
26− freetype fontconfig lcms libpng libjpeg poppler libtiff webkit
27− libmng librsvg libwmf zlib libzip ghostscript aalib jasper
28− python pygtk libexif gettext xorg.libXpm
29− wrapPython
30− ]
31− ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Cocoa gtk-mac-integration ];
32−
33− pythonPath = [ pygtk ];
34−
35− postFixup = ''
36− wrapPythonProgramsIn $out/lib/gimp/2.0/plug-ins/
37− wrapProgram $out/bin/gimp \
38− --prefix PYTHONPATH : "$PYTHONPATH" \
39− --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
40− '';
41−
42− passthru = { gtk = gtk2; }; # probably its a good idea to use the same gtk in plugins ?
43−
44− #configureFlags = [ "--disable-print" ];
45−
46− enableParallelBuilding = true;
47−
48− # "screenshot" needs this.
49− NIX_LDFLAGS = "-rpath ${xorg.libX11.out}/lib";
50−
51− meta = {
52− description = "The GNU Image Manipulation Program";
53− homepage = https://www.gimp.org/;
54− license = stdenv.lib.licenses.gpl3Plus;
55− platforms = stdenv.lib.platforms.unix;
56− };
57−}
pkgs/applications/graphics/gimp/default.nixnew file+95
@@ -0,0 +1,95 @@
1+{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, intltool, babl, gegl, gtk2, glib, gdk_pixbuf, isocodes
2+, pango, cairo, freetype, fontconfig, lcms, libpng, libjpeg, poppler, poppler_data, libtiff
3+, libmng, librsvg, libwmf, zlib, libzip, ghostscript, aalib, shared-mime-info
4+, python2Packages, libexif, gettext, xorg, glib-networking, libmypaint, gexiv2
5+, harfbuzz, mypaint-brushes, libwebp, libgudev, openexr
6+, AppKit, Cocoa, gtk-mac-integration }:
7+
8+let
9+ inherit (python2Packages) pygtk wrapPython python;
10+in stdenv.mkDerivation rec {
11+ name = "gimp-${version}";
12+ version = "2.10.0";
13+
14+ src = fetchurl {
15+ url = "http://download.gimp.org/pub/gimp/v${stdenv.lib.versions.majorMinor version}/${name}.tar.bz2";
16+ sha256 = "1qkxaigbfkx26xym5nzrgfrmn97cbnhn63v1saaha2nbi3xrdk3z";
17+ };
18+
19+ patches = [
20+ # fix rpath of python library https://bugzilla.gnome.org/show_bug.cgi?id=795620
21+ (fetchurl {
22+ url = https://bugzilla.gnome.org/attachment.cgi?id=371482;
23+ sha256 = "18bysndh61pvlv255xapdrfpsl5ivm51wp1w7xgk9vky9z2y3llc";
24+ })
25+
26+ # fix absolute paths stored in configuration
27+ (fetchpatch {
28+ url = https://git.gnome.org/browse/gimp/patch/?id=0fce8fdb3c056acead8322c976a96fb6fba793b6;
29+ sha256 = "09845i3bdpdbf13razr04ksvwydxcvzhjwlb4dfgdv5q203g2ris";
30+ })
31+ (fetchpatch {
32+ url = https://git.gnome.org/browse/gimp/patch/?id=f6b586237cb8c912c1503f8e6086edd17f07d4df;
33+ sha256 = "0s68885ip2wgjvsl5vqi2f1xhxdjpzqprifzgdl1vnv6gqmfy3bh";
34+ })
35+
36+ # fix pc file (needed e.g. for building plug-ins)
37+ (fetchpatch {
38+ url = https://git.gnome.org/browse/gimp/patch/?id=7e19906827d301eb70275dba089849a632a0eabe;
39+ sha256 = "0cbjfbwvzg2hqihg3rpsga405v7z2qahj22dfqn2jrb2gbhrjcp1";
40+ })
41+ ];
42+
43+ nativeBuildInputs = [ autoreconfHook pkgconfig intltool gettext wrapPython ];
44+ propagatedBuildInputs = [ gegl ]; # needed by gimp-2.0.pc
45+ buildInputs = [
46+ babl gegl gtk2 glib gdk_pixbuf pango cairo gexiv2 harfbuzz isocodes libgudev
47+ freetype fontconfig lcms libpng libjpeg poppler poppler_data libtiff openexr
48+ libmng librsvg libwmf zlib libzip ghostscript aalib shared-mime-info libwebp
49+ python pygtk libexif xorg.libXpm glib-networking libmypaint mypaint-brushes
50+ ] ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Cocoa gtk-mac-integration ];
51+
52+ pythonPath = [ pygtk ];
53+
54+ # Check if librsvg was built with --disable-pixbuf-loader.
55+ PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk_pixbuf.moduleDir}";
56+
57+ preConfigure = ''
58+ # The check runs before glib-networking is registered
59+ export GIO_EXTRA_MODULES="${glib-networking}/lib/gio/modules:$GIO_EXTRA_MODULES"
60+ '';
61+
62+ postFixup = ''
63+ wrapPythonProgramsIn $out/lib/gimp/${passthru.majorVersion}/plug-ins/
64+ wrapProgram $out/bin/gimp-${stdenv.lib.versions.majorMinor version} \
65+ --prefix PYTHONPATH : "$PYTHONPATH" \
66+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
67+ '';
68+
69+ passthru = rec {
70+ # The declarations for `gimp-with-plugins` wrapper,
71+ # used for determining plug-in installation paths
72+ majorVersion = "${stdenv.lib.versions.major version}.0";
73+ targetPluginDir = "lib/gimp/${majorVersion}/plug-ins";
74+ targetScriptDir = "lib/gimp/${majorVersion}/scripts";
75+
76+ # probably its a good idea to use the same gtk in plugins ?
77+ gtk = gtk2;
78+ };
79+
80+ configureFlags = [
81+ "--without-webkit" # old version is required
82+ ];
83+
84+ doCheck = true;
85+
86+ enableParallelBuilding = true;
87+
88+ meta = with stdenv.lib; {
89+ description = "The GNU Image Manipulation Program";
90+ homepage = https://www.gimp.org/;
91+ maintainers = with maintainers; [ jtojnar ];
92+ license = licenses.gpl3Plus;
93+ platforms = platforms.unix;
94+ };
95+}
pkgs/applications/graphics/gimp/plugins/default.nix+10−53
@@ -12,12 +12,12 @@ let
1212 prePhases = "extraLib";
1313 extraLib = ''
1414 installScripts(){
15− mkdir -p ${targetScriptDir};
16− for p in "$@"; do cp "$p" ${targetScriptDir}; done
15+ mkdir -p $out/${targetScriptDir};
16+ for p in "$@"; do cp "$p" $out/${targetScriptDir}; done
1717 }
1818 installPlugins(){
19− mkdir -p ${targetPluginDir};
20− for p in "$@"; do cp "$p" ${targetPluginDir}; done
19+ mkdir -p $out/${targetPluginDir};
20+ for p in "$@"; do cp "$p" $out/${targetPluginDir}; done
2121 }
2222 '';
2323 }
@@ -35,15 +35,6 @@ let
3535 installPhase = "installScripts ${src}";
3636 };
3737
38− libLQR = pluginDerivation {
39− name = "liblqr-1-0.4.1";
40− # required by lqrPlugin, you don't havet to install this lib explicitely
41− src = fetchurl {
42− url = http://registry.gimp.org/files/liblqr-1-0.4.1.tar.bz2;
43− sha256 = "02g90wag7xi5rjlmwq8h0qs666b1i2sa90s4303hmym40il33nlz";
44− };
45− };
46−
4738in
4839rec {
4940 gap = pluginDerivation {
@@ -97,6 +88,7 @@ rec {
9788 url = "http://registry.gimp.org/files/${name}.tar.bz2";
9889 sha256 = "1gqf3hchz7n7v5kpqkhqh8kwnxbsvlb5cr2w2n7ngrvl56f5xs1h";
9990 };
91+ meta.broken = true;
10092 };
10193
10294 resynthesizer = pluginDerivation {
@@ -147,6 +139,7 @@ rec {
147139 sha256 = "1zzvbczly7k456c0y6s92a1i8ph4ywmbvdl8i4rcc29l4qd2z8fw";
148140 };
149141 installPhase = "installPlugins src/texturize";
142+ meta.broken = true; # https://github.com/lmanul/gimp-texturize/issues/1
150143 };
151144
152145 waveletSharpen = pluginDerivation {
@@ -166,54 +159,18 @@ rec {
166159 Layer/Liquid Rescale
167160 */
168161 name = "lqr-plugin-0.6.1";
169− buildInputs = with pkgs; [ libLQR ];
162+ buildInputs = with pkgs; [ liblqr1 ];
170163 src = fetchurl {
171164 url = http://registry.gimp.org/files/gimp-lqr-plugin-0.6.1.tar.bz2;
172165 sha256 = "00hklkpcimcbpjly4rjhfipaw096cpy768g9wixglwrsyqhil7l9";
173166 };
174− #postInstall = ''mkdir -p $out/nix-support; echo "${libLQR}" > "$out/nix-support/propagated-user-env-packages"'';
167+ #postInstall = ''mkdir -p $out/nix-support; echo "${liblqr1}" > "$out/nix-support/propagated-user-env-packages"'';
175168 installPhase = "installPlugins src/gimp-lqr-plugin";
176169 };
177170
178− gmic =
179− pluginDerivation rec {
180− inherit (pkgs.gmic) name src meta;
171+ gmic = pkgs.gmic.gimpPlugin;
181172
182− buildInputs = with pkgs; [ fftw opencv curl ];
183−
184− sourceRoot = "${name}/src";
185−
186− buildFlags = "gimp";
187−
188− installPhase = "installPlugins gmic_gimp";
189− };
190−
191− # this is more than a gimp plugin !
192− # either load the raw image with gimp (and the import dialog will popup)
193− # or use the binary
194− ufraw = pluginDerivation rec {
195− name = "ufraw-0.19.2";
196− buildInputs = with pkgs; [ gtkimageview lcms ];
197− # --enable-mime - install mime files, see README for more information
198− # --enable-extras - build extra (dcraw, nikon-curve) executables
199− # --enable-dst-correction - enable DST correction for file timestamps.
200− # --enable-contrast - enable the contrast setting option.
201− # --enable-interp-none: enable 'None' interpolation (mostly for debugging).
202− # --with-lensfun: use the lensfun library - experimental feature, read this before using it.
203− # --with-prefix=PREFIX - use also PREFIX as an input prefix for the build
204− # --with-dosprefix=PREFIX - PREFIX in the the prefix in dos format (needed only for ms-window
205− configureFlags = "--enable-extras --enable-dst-correction --enable-contrast";
206−
207− src = fetchurl {
208− url = "mirror://sourceforge/ufraw/${name}.tar.gz";
209− sha256 = "1lxba7pb3vcsq94dwapg9bk9mb3ww6r3pvvcyb0ah5gh2sgzxgkk";
210− };
211− installPhase = "
212− installPlugins ufraw-gimp
213− mkdir -p $out/bin
214− cp ufraw $out/bin
215− ";
216− };
173+ ufraw = pkgs.ufraw.gimpPlugin;
217174
218175 gimplensfun = pluginDerivation rec {
219176 version = "0.2.4";
pkgs/applications/graphics/gimp/wrapper.nix+4−3
@@ -1,9 +1,10 @@
11{ stdenv, lib, symlinkJoin, gimp, makeWrapper, gimpPlugins, plugins ? null}:
22
33let
4−allPlugins = lib.filter (pkg: builtins.isAttrs pkg && pkg.type == "derivation") (lib.attrValues gimpPlugins);
4+allPlugins = lib.filter (pkg: builtins.isAttrs pkg && pkg.type == "derivation" && !pkg.meta.broken or false) (lib.attrValues gimpPlugins);
55selectedPlugins = if plugins == null then allPlugins else plugins;
66extraArgs = map (x: x.wrapArgs or "") selectedPlugins;
7+versionBranch = stdenv.lib.versions.majorMinor gimp.version;
78
89in symlinkJoin {
910 name = "gimp-with-plugins-${gimp.version}";
@@ -13,14 +14,14 @@ in symlinkJoin {
1314 buildInputs = [ makeWrapper ];
1415
1516 postBuild = ''
16− for each in gimp-2.8 gimp-console-2.8; do
17+ for each in gimp-${versionBranch} gimp-console-${versionBranch}; do
1718 wrapProgram $out/bin/$each \
1819 --set GIMP2_PLUGINDIR "$out/lib/gimp/2.0" \
1920 ${toString extraArgs}
2021 done
2122 set +x
2223 for each in gimp gimp-console; do
23− ln -sf "$each-2.8" $out/bin/$each
24+ ln -sf "$each-${versionBranch}" $out/bin/$each
2425 done
2526 '';
2627}
pkgs/applications/graphics/sane/xsane.nix+3−3
@@ -1,9 +1,9 @@
11{ stdenv, fetchurl, sane-backends, sane-frontends, libX11, gtk2, pkgconfig, libpng
22, libusb ? null
3−, gimpSupport ? false, gimp_2_8 ? null
3+, gimpSupport ? false, gimp ? null
44}:
55
6−assert gimpSupport -> gimp_2_8 != null;
6+assert gimpSupport -> gimp != null;
77
88stdenv.mkDerivation rec {
99 name = "xsane-0.999";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
2121 nativeBuildInputs = [ pkgconfig ];
2222 buildInputs = [libpng sane-backends sane-frontends libX11 gtk2 ]
2323 ++ (if libusb != null then [libusb] else [])
24− ++ stdenv.lib.optional gimpSupport gimp_2_8;
24+ ++ stdenv.lib.optional gimpSupport gimp;
2525
2626 meta = {
2727 homepage = http://www.sane-project.org/;
pkgs/applications/graphics/ufraw/default.nix+20−4
@@ -1,6 +1,9 @@
11{ fetchurl, stdenv, pkgconfig, gtk2, gettext, bzip2, zlib
2+, withGimpPlugin ? true, gimp ? null
23, libjpeg, libtiff, cfitsio, exiv2, lcms2, gtkimageview, lensfun }:
34
5+assert withGimpPlugin -> gimp != null;
6+
47stdenv.mkDerivation rec {
58 name = "ufraw-0.22";
69
@@ -10,10 +13,23 @@ stdenv.mkDerivation rec {
1013 sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
1114 };
1215
13− buildInputs =
14− [ pkgconfig gtk2 gtkimageview gettext bzip2 zlib
15− libjpeg libtiff cfitsio exiv2 lcms2 lensfun
16− ];
16+ outputs = [ "out" ] ++ stdenv.lib.optional withGimpPlugin "gimpPlugin";
17+
18+ nativeBuildInputs = [ pkgconfig gettext ];
19+ buildInputs = [
20+ gtk2 gtkimageview bzip2 zlib
21+ libjpeg libtiff cfitsio exiv2 lcms2 lensfun
22+ ] ++ stdenv.lib.optional withGimpPlugin gimp;
23+
24+ configureFlags = [
25+ "--enable-extras"
26+ "--enable-dst-correction"
27+ "--enable-contrast"
28+ ] ++ stdenv.lib.optional withGimpPlugin "--with-gimp";
29+
30+ postInstall = stdenv.lib.optionalString withGimpPlugin ''
31+ moveToOutput "lib/gimp" "$gimpPlugin"
32+ '';
1733
1834 meta = {
1935 homepage = http://ufraw.sourceforge.net/;
pkgs/development/libraries/gdk-pixbuf/default.nix+3
@@ -52,6 +52,9 @@ stdenv.mkDerivation rec {
5252 packageName = pname;
5353 attrPath = "gdk_pixbuf";
5454 };
55+
56+ # gdk_pixbuf_moduledir variable from gdk-pixbuf-2.0.pc
57+ moduleDir = "lib/gdk-pixbuf-2.0/2.10.0/loaders";
5558 };
5659
5760 meta = with stdenv.lib; {
pkgs/development/libraries/gegl/4.0.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg, which
2+, librsvg, pango, gtk, bzip2, json-glib, intltool, autoreconfHook, libraw
3+, libwebp, gnome3, libintl }:
4+
5+let
6+ version = "0.4.0";
7+in stdenv.mkDerivation rec {
8+ name = "gegl-${version}";
9+
10+ src = fetchurl {
11+ url = "http://download.gimp.org/pub/gegl/${stdenv.lib.versions.majorMinor version}/${name}.tar.bz2";
12+ sha256 = "1ighk4z8nlqrzyj8w97s140hzj59564l3xv6fpzbr97m1zx2nkfh";
13+ };
14+
15+ # needs fonts otherwise, don't know how to pass them
16+ configureFlags = [ "--disable-docs" ];
17+
18+ enableParallelBuilding = true;
19+
20+ doCheck = true;
21+
22+ buildInputs = [
23+ libpng cairo libjpeg librsvg pango gtk bzip2
24+ libraw libwebp gnome3.gexiv2
25+ ];
26+
27+ propagatedBuildInputs = [ glib json-glib babl ]; # for gegl-4.0.pc
28+
29+ nativeBuildInputs = [ pkgconfig intltool which autoreconfHook libintl ];
30+
31+ meta = with stdenv.lib; {
32+ description = "Graph-based image processing framework";
33+ homepage = http://www.gegl.org;
34+ license = licenses.gpl3;
35+ maintainers = with maintainers; [ jtojnar ];
36+ platforms = platforms.unix;
37+ };
38+}
pkgs/development/libraries/mypaint-brushes/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{stdenv, fetchpatch, autoconf, automake, fetchFromGitHub, pkgconfig}:
2+
3+let
4+ pname = "mypaint-brushes";
5+ version = "1.3.0";
6+in stdenv.mkDerivation rec {
7+ name = "${pname}-${version}";
8+
9+ src = fetchFromGitHub {
10+ owner = "Jehan";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "1iz89z6v2mp8j1lrf942k561s8311i3s34ap36wh4rybb2lq15m0";
14+ };
15+
16+ nativeBuildInputs = [ autoconf automake pkgconfig ];
17+
18+ patches = [
19+ # build with automake 1.16
20+ (fetchpatch {
21+ url = https://github.com/Jehan/mypaint-brushes/commit/1e9109dde3bffd416ed351c3f30ecd6ffd0ca2cd.patch;
22+ sha256 = "0mi8rwbirl0ib22f2hz7kdlgi4hw8s3ab29b003dsshdyzn5iha9";
23+ })
24+ ];
25+
26+ preConfigure = "./autogen.sh";
27+
28+ meta = with stdenv.lib; {
29+ homepage = http://mypaint.org/;
30+ description = "Brushes used by MyPaint and other software using libmypaint.";
31+ license = licenses.cc0;
32+ maintainers = with maintainers; [ jtojnar ];
33+ platforms = platforms.unix;
34+ };
35+}
pkgs/tools/graphics/gmic/default.nix+30−21
@@ -1,36 +1,45 @@
1−{ stdenv, fetchurl, fftw, zlib, libjpeg, libtiff, libpng, pkgconfig }:
1+{ stdenv, fetchurl, fetchFromGitHub, cmake, ninja, pkgconfig
2+, opencv, openexr, graphicsmagick, fftw, zlib, libjpeg, libtiff, libpng
3+, withGimpPlugin ? true, gimp ? null}:
24
3−stdenv.mkDerivation rec {
5+assert withGimpPlugin -> gimp != null;
6+
7+let
8+ version = "2.2.2";
9+
10+ # CMakeLists.txt is missing from the tarball and Makefile is terrible
11+ CMakeLists = fetchurl {
12+ url = "https://github.com/dtschump/gmic/raw/v.${version}/CMakeLists.txt";
13+ sha256 = "0lv5jrg98cpbk13fl4xm7l4sk1axfz054q570bpi741w815d7cpg";
14+ };
15+in stdenv.mkDerivation rec {
416 name = "gmic-${version}";
5− version = "2.2.1";
17+
18+ outputs = [ "out" "lib" "dev" "man" ] ++ stdenv.lib.optional withGimpPlugin "gimpPlugin";
619
720 src = fetchurl {
821 url = "http://gmic.eu/files/source/gmic_${version}.tar.gz";
9− sha256 = "0iac1zaix2zv1dfp45ca0wk9pj6k02gf8l1vmg820z8jd12pa19w";
22+ sha256 = "0zqfj2ym5nn3ff93xh2wf9ayxqlznabbdi00xw4lm7vw3iwkzqnc";
1023 };
1124
12− nativeBuildInputs = [ pkgconfig ];
25+ nativeBuildInputs = [ cmake ninja pkgconfig ];
1326
14− buildInputs = [ fftw zlib libjpeg libtiff libpng ];
27+ buildInputs = [
28+ fftw zlib libjpeg libtiff libpng opencv openexr graphicsmagick
29+ ] ++ stdenv.lib.optionals withGimpPlugin [ gimp gimp.gtk ];
1530
16− sourceRoot = "${name}/src";
31+ cmakeFlags = [
32+ "-DBUILD_LIB_STATIC=OFF"
33+ "-DBUILD_PLUGIN=${if withGimpPlugin then "ON" else "OFF"}"
34+ "-DENABLE_DYNAMIC_LINKING=ON"
35+ ];
1736
18− preBuild = ''
19− buildFlagsArray=( \
20− CURL_CFLAGS= CURL_LIBS= \
21− OPENEXR_CFLAGS= OPENEXR_LIBS= \
22− OPENCV_CFLAGS= OPENCV_LIBS= \
23− X11_CFLAGS="-Dcimg_display=0" X11_LIBS= \
24− cli \
25− )
37+ postPatch = ''
38+ cp ${CMakeLists} CMakeLists.txt
2639 '';
2740
28− installPhase = ''
29− mkdir -p $out/bin
30− mkdir -p $out/share/man/man1
31−
32− cp -v gmic $out/bin/
33− cp -v ../man/gmic.1.gz $out/share/man/man1/
41+ preConfigure = stdenv.lib.optionalString withGimpPlugin ''
42+ cmakeFlags="$cmakeFlags -DPLUGIN_INSTALL_PREFIX=$gimpPlugin/${gimp.targetPluginDir}"
3443 '';
3544
3645 meta = with stdenv.lib; {
pkgs/top-level/all-packages.nix+9−5
@@ -8949,6 +8949,10 @@ with pkgs;
89498949 gtk = self.gtk2;
89508950 };
89518951
8952+ gegl_0_4 = callPackage ../development/libraries/gegl/4.0.nix {
8953+ gtk = self.gtk2;
8954+ };
8955+
89528956 geoclue = callPackage ../development/libraries/geoclue {};
89538957
89548958 geoclue2 = callPackage ../development/libraries/geoclue/2.0.nix {};
@@ -15908,16 +15912,14 @@ with pkgs;
1590815912
1590915913 ghq = gitAndTools.ghq;
1591015914
15911− gimp_2_8 = callPackage ../applications/graphics/gimp/2.8.nix {
15912− webkit = null;
15915+ gimp = callPackage ../applications/graphics/gimp {
15916+ gegl = gegl_0_4;
1591315917 lcms = lcms2;
15918+ inherit (gnome3) gexiv2;
1591415919 inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;
1591515920 };
1591615921
15917− gimp = gimp_2_8;
15918−
1591915922 gimp-with-plugins = callPackage ../applications/graphics/gimp/wrapper.nix {
15920− gimp = gimp_2_8;
1592115923 plugins = null; # All packaged plugins enabled, if not explicit plugin list supplied
1592215924 };
1592315925
@@ -17080,6 +17082,8 @@ with pkgs;
1708017082
1708117083 mypaint = callPackage ../applications/graphics/mypaint { };
1708217084
17085+ mypaint-brushes = callPackage ../development/libraries/mypaint-brushes { };
17086+
1708317087 mythtv = libsForQt5.callPackage ../applications/video/mythtv { };
1708417088
1708517089 micro = callPackage ../applications/editors/micro { };