2018-03-03 04:45:41 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, glib, fetchpatch, gnome3 }:
|
2018-12-25 03:23:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 04:45:41 +00:00
|
|
|
pname = "libcroco";
|
|
|
|
version = "0.6.12";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-25 03:23:40 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2017-06-20 06:47:52 +01:00
|
|
|
sha256 = "0q7qhi7z64i26zabg9dbs5706fa8pmzp1qhpa052id4zdiabbi6x";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2018-01-06 20:46:45 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2017-7960.patch";
|
2018-05-29 09:23:49 +01:00
|
|
|
url = https://gitlab.gnome.org/GNOME/libcroco/commit/898e3a8c8c0314d2e6b106809a8e3e93cf9d4394.patch;
|
2018-01-06 20:46:45 +00:00
|
|
|
sha256 = "1xjwdqijxf4b7mhdp3kkgnb6c14y0bn3b3gg79kyrm82x696d94l";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2017-7961.patch";
|
2018-05-29 09:23:49 +01:00
|
|
|
url = https://gitlab.gnome.org/GNOME/libcroco/commit/9ad72875e9f08e4c519ef63d44cdbd94aa9504f7.patch;
|
2018-01-06 20:46:45 +00:00
|
|
|
sha256 = "0zakd72ynzjgzskwyvqglqiznsb93j1bkvc1lgyrzgv9rwrbwv9s";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-Bsymbolic";
|
|
|
|
|
2017-06-20 06:47:52 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 glib ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 04:45:41 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-06-20 06:47:52 +01:00
|
|
|
description = "GNOME CSS2 parsing and manipulation toolkit";
|
2018-05-29 09:23:49 +01:00
|
|
|
homepage = https://gitlab.gnome.org/GNOME/libcroco;
|
2017-06-20 06:47:52 +01:00
|
|
|
license = licenses.lgpl2;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|