2021-07-03 11:58:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-10-24 15:58:16 +00:00
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-07-03 11:58:10 +00:00
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, glib
|
2020-10-24 15:58:16 +00:00
|
|
|
, babl
|
|
|
|
, libpng
|
|
|
|
, cairo
|
|
|
|
, libjpeg
|
|
|
|
, librsvg
|
2021-07-03 11:58:10 +00:00
|
|
|
, lensfun
|
|
|
|
, libspiro
|
|
|
|
, maxflow
|
|
|
|
, netsurf
|
2020-10-24 15:58:16 +00:00
|
|
|
, pango
|
2021-07-03 11:58:10 +00:00
|
|
|
, poly2tri-c
|
|
|
|
, poppler
|
2020-10-24 15:58:16 +00:00
|
|
|
, bzip2
|
2021-07-03 11:58:10 +00:00
|
|
|
, json-glib
|
|
|
|
, gettext
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libraw
|
|
|
|
, gexiv2
|
|
|
|
, libwebp
|
|
|
|
, luajit
|
|
|
|
, openexr
|
|
|
|
, OpenCL
|
|
|
|
, suitesparse
|
|
|
|
}:
|
2014-02-05 20:38:03 +00:00
|
|
|
|
2011-10-05 14:45:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-10-24 15:58:16 +00:00
|
|
|
pname = "gegl";
|
2021-07-03 11:58:10 +00:00
|
|
|
version = "0.4.30";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
2008-04-04 20:57:09 +00:00
|
|
|
|
2010-07-30 14:47:23 +00:00
|
|
|
src = fetchurl {
|
2021-07-03 11:58:10 +00:00
|
|
|
url = "https://download.gimp.org/pub/gegl/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "sha256-wRJ4LPQJaWniMhfM36vkIoTjXVQ1/wxD1A5McPrsqN0=";
|
2008-04-04 20:57:09 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 11:58:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpng
|
|
|
|
cairo
|
|
|
|
libjpeg
|
|
|
|
librsvg
|
|
|
|
lensfun
|
|
|
|
libspiro
|
|
|
|
maxflow
|
|
|
|
netsurf.libnsgif
|
|
|
|
pango
|
|
|
|
poly2tri-c
|
|
|
|
poppler
|
|
|
|
bzip2
|
|
|
|
libraw
|
|
|
|
libwebp
|
|
|
|
gexiv2
|
|
|
|
luajit
|
|
|
|
openexr
|
|
|
|
suitesparse
|
|
|
|
] ++ lib.optional stdenv.isDarwin OpenCL;
|
|
|
|
|
|
|
|
# for gegl-4.0.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
json-glib
|
|
|
|
babl
|
|
|
|
];
|
2014-02-05 20:38:03 +00:00
|
|
|
|
2021-07-03 11:58:10 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=true"
|
|
|
|
"-Dmrg=disabled" # not sure what that is
|
|
|
|
"-Dsdl2=disabled"
|
|
|
|
"-Dpygobject=disabled"
|
|
|
|
"-Dlibav=disabled"
|
|
|
|
"-Dlibv4l=disabled"
|
|
|
|
"-Dlibv4l2=disabled"
|
|
|
|
# Disabled due to multiple vulnerabilities, see
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/73586
|
|
|
|
"-Djasper=disabled"
|
|
|
|
];
|
2008-04-04 20:57:09 +00:00
|
|
|
|
2021-07-03 11:58:10 +00:00
|
|
|
# TODO: Fix missing math symbols in gegl seamless clone.
|
|
|
|
# It only appears when we use packaged poly2tri-c instead of vendored one.
|
|
|
|
NIX_CFLAGS_COMPILE = "-lm";
|
2011-10-05 14:45:49 +00:00
|
|
|
|
2021-07-03 11:58:10 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x tests/opencl/opencl_test.sh
|
|
|
|
patchShebangs tests/ff-load-save/tests_ff_load_save.sh tests/opencl/opencl_test.sh tools/xml_insert.sh
|
|
|
|
'';
|
2008-04-04 20:57:09 +00:00
|
|
|
|
2021-07-03 11:58:10 +00:00
|
|
|
# tests fail to connect to the com.apple.fonts daemon in sandboxed mode
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-07-30 14:47:23 +00:00
|
|
|
description = "Graph-based image processing framework";
|
2020-10-24 15:58:16 +00:00
|
|
|
homepage = "https://www.gegl.org";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
2008-04-04 20:57:09 +00:00
|
|
|
};
|
|
|
|
}
|