2018-03-05 14:39:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, glib, cairo, Carbon, fontconfig
|
2018-07-21 02:44:44 +02:00
|
|
|
, libtiff, giflib, libjpeg, libpng
|
2018-03-05 14:39:01 +01:00
|
|
|
, libXrender, libexif, autoreconfHook }:
|
2012-01-04 14:55:54 +01:00
|
|
|
|
2012-03-06 14:49:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-05 14:39:01 +01:00
|
|
|
name = "libgdiplus-5.6";
|
2012-01-04 14:55:54 +01:00
|
|
|
|
2018-03-05 14:39:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mono";
|
|
|
|
repo = "libgdiplus";
|
|
|
|
rev = "5.6";
|
|
|
|
sha256 = "11xr84kng74j3pd8sx74q80a71k6dw0a502qgibcxlyqh666lfb7";
|
2012-01-04 14:55:54 +01:00
|
|
|
};
|
|
|
|
|
2013-12-07 13:32:57 +01:00
|
|
|
NIX_LDFLAGS = "-lgif";
|
|
|
|
|
2018-03-05 14:39:01 +01:00
|
|
|
patches = [ ];
|
2012-03-06 14:49:37 +01:00
|
|
|
|
|
|
|
patchFlags = "-p0";
|
|
|
|
|
2018-05-28 22:53:19 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2018-03-05 14:39:01 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
2012-03-06 14:49:37 +01:00
|
|
|
buildInputs =
|
2018-03-05 14:39:01 +01:00
|
|
|
[ glib cairo fontconfig libtiff giflib
|
2012-03-06 14:49:37 +01:00
|
|
|
libjpeg libpng libXrender libexif
|
2016-01-24 04:49:50 +01:00
|
|
|
]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin Carbon;
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2017-02-07 20:00:48 +01:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
ln -s $out/lib/libgdiplus.0.dylib $out/lib/libgdiplus.so
|
|
|
|
'';
|
|
|
|
|
2018-10-17 20:31:22 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mono library that provides a GDI+-compatible API on non-Windows operating systems";
|
|
|
|
homepage = https://www.mono-project.com/docs/gui/libgdiplus/;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2012-01-04 14:55:54 +01:00
|
|
|
}
|