@@ -2,33 +2,19 @@
22, libtiff, giflib, libjpeg, libpng
33, libXrender, libexif, autoreconfHook, fetchpatch }:
44
5−stdenv.mkDerivation {
6− name = "libgdiplus-5.6.1";
5+stdenv.mkDerivation rec {
6+ pname = "libgdiplus";
7+ version = "6.0.2";
78
89 src = fetchFromGitHub {
910 owner = "mono";
1011 repo = "libgdiplus";
11− rev = "5.6.1";
12− sha256 = "023xf3l2s0mxcdbl2viglzrkhx3lwcrpm66fiq7cfdqz80d4vsj2";
12+ rev = version;
13+ sha256 = "07a3n7i35mn5j2djah64by785b1hzy8ckk1pz0xwvk716yzb7sxg";
1314 };
1415
1516 NIX_LDFLAGS = "-lgif";
1617
17− patches = [ # Series of patches cherry-picked from master, all fixes various sigsegv (or required by other patch)
18− (fetchpatch {
19− url = "https://github.com/mono/libgdiplus/commit/d33a2580a94701ff33abe28c22881d6173be57d0.patch";
20− sha256 = "0rr54jylscn4icqjprqhwrncyr92r0d7kmfrrq3myskplpqv1c11";
21− })
22− (fetchpatch {
23− url ="https://github.com/mono/libgdiplus/commit/aa6aa53906935572f52f519fe4ab9ebedc051d08.patch";
24− sha256 = "1wg0avm8qv5cb4vk80baflfzszm6q7ydhn89c3h6kq68hg6zsf1f";
25− })
26− (fetchpatch {
27− url = "https://github.com/mono/libgdiplus/commit/81e45a1d5a3ac3cf035bcc3fabb2859818b6cc04.patch";
28− sha256 = "07wmc88cd1lqifs5x6npryni65jyy9gi8lgr2i1lb7v0fhvlyswg";
29− })
30− ];
31−
3218 hardeningDisable = [ "format" ];
3319
3420 nativeBuildInputs = [ autoreconfHook pkgconfig ];