nixpkgs-suyu/pkgs/development/libraries/libgdiplus/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, glib, cairo, Carbon, fontconfig
, libtiff, giflib, libjpeg, libpng
, libXrender, libexif, autoreconfHook }:
stdenv.mkDerivation rec {
name = "libgdiplus-5.6";
src = fetchFromGitHub {
owner = "mono";
repo = "libgdiplus";
rev = "5.6";
sha256 = "11xr84kng74j3pd8sx74q80a71k6dw0a502qgibcxlyqh666lfb7";
};
NIX_LDFLAGS = "-lgif";
patches = [ ];
patchFlags = "-p0";
hardeningDisable = [ "format" ];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs =
[ glib cairo fontconfig libtiff giflib
libjpeg libpng libXrender libexif
2016-01-24 04:49:50 +01:00
]
++ stdenv.lib.optional stdenv.isDarwin Carbon;
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;
};
}