2010-07-30 18:47:23 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg
|
2016-09-12 00:24:51 +03:00
|
|
|
, librsvg, pango, gtk2, bzip2, intltool
|
2016-08-12 06:17:48 +03:00
|
|
|
, OpenGL ? null }:
|
2014-02-06 00:38:03 +04:00
|
|
|
|
2011-10-05 18:45:49 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2012-06-11 11:17:39 +04:00
|
|
|
name = "gegl-0.2.0";
|
2008-04-05 00:57:09 +04:00
|
|
|
|
2010-07-30 18:47:23 +04:00
|
|
|
src = fetchurl {
|
2012-06-11 11:17:39 +04:00
|
|
|
url = "ftp://ftp.gtk.org/pub/gegl/0.2/${name}.tar.bz2";
|
|
|
|
sha256 = "df2e6a0d9499afcbc4f9029c18d9d1e0dd5e8710a75e17c9b1d9a6480dd8d426";
|
2008-04-05 00:57:09 +04:00
|
|
|
};
|
|
|
|
|
2014-02-06 00:38:03 +04:00
|
|
|
patches = [( fetchurl {
|
|
|
|
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/"
|
|
|
|
+ "gegl-0.2.0-CVE-2012-4433.patch?h=packages/gegl&id=57a60fbda5d7bbbd1cc4767cb0724baa80c5e3e9";
|
|
|
|
sha256 = "0p8mxj3w09nn1cc6cbxrd9hx742c5y27903i608wx6ja3kdjis59";
|
|
|
|
name = "CVE-2012-4433.patch";
|
|
|
|
})];
|
|
|
|
|
2011-10-05 18:45:49 +04:00
|
|
|
# needs fonts otherwise don't know how to pass them
|
|
|
|
configureFlags = "--disable-docs";
|
2008-04-05 00:57:09 +04:00
|
|
|
|
2015-04-01 23:32:57 +03:00
|
|
|
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
|
|
|
|
2016-09-12 00:24:51 +03:00
|
|
|
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk2 bzip2 intltool ]
|
2016-08-12 06:17:48 +03:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin OpenGL;
|
2011-10-05 18:45:49 +04:00
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2008-04-05 00:57:09 +04:00
|
|
|
|
|
|
|
meta = {
|
2010-07-30 18:47:23 +04:00
|
|
|
description = "Graph-based image processing framework";
|
|
|
|
homepage = http://www.gegl.org;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-04-27 04:10:42 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-04-05 00:57:09 +04:00
|
|
|
};
|
|
|
|
}
|