2020-10-24 16:58:16 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-10-24 16:58:16 +01:00
|
|
|
, babl
|
|
|
|
, libpng
|
|
|
|
, cairo
|
|
|
|
, libjpeg
|
|
|
|
, librsvg
|
|
|
|
, pango
|
|
|
|
, gtk2
|
|
|
|
, bzip2
|
|
|
|
, intltool
|
|
|
|
, libintl
|
2016-08-12 04:17:48 +01:00
|
|
|
, OpenGL ? null }:
|
2014-02-05 20:38:03 +00:00
|
|
|
|
2011-10-05 15:45:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-10-24 16:58:16 +01:00
|
|
|
pname = "gegl";
|
|
|
|
version = "0.2.0";
|
2008-04-04 21:57:09 +01:00
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
src = fetchurl {
|
2020-10-24 16:58:16 +01:00
|
|
|
url = "ftp://ftp.gtk.org/pub/gegl/0.2/${pname}-${version}.tar.bz2";
|
2012-06-11 08:17:39 +01:00
|
|
|
sha256 = "df2e6a0d9499afcbc4f9029c18d9d1e0dd5e8710a75e17c9b1d9a6480dd8d426";
|
2008-04-04 21:57:09 +01:00
|
|
|
};
|
|
|
|
|
2014-02-05 20:38:03 +00: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";
|
|
|
|
})];
|
|
|
|
|
2020-10-24 16:58:16 +01:00
|
|
|
# needs fonts otherwise don't know how to pass them
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--disable-docs" ];
|
2008-04-04 21:57:09 +01:00
|
|
|
|
2018-03-14 19:15:06 +00:00
|
|
|
buildInputs = [ babl libpng cairo libjpeg librsvg pango gtk2 bzip2 intltool libintl ]
|
2016-08-12 04:17:48 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin OpenGL;
|
2011-10-05 15:45:49 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2008-04-04 21:57:09 +01:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # fails 3 out of 19 tests
|
|
|
|
|
2020-10-24 16:58:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-30 15:47:23 +01:00
|
|
|
description = "Graph-based image processing framework";
|
2020-10-24 16:58:16 +01:00
|
|
|
homepage = "https://www.gegl.org";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
2008-04-04 21:57:09 +01:00
|
|
|
};
|
|
|
|
}
|