1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/development/libraries/libgdiplus/default.nix
Tuomas Tynkkynen 2258b21e4b treewide: Add lots of platforms to packages with no meta
Build-tested on x86_64 Linux and on Darwin.
2016-08-02 21:17:44 +03:00

35 lines
922 B
Nix

{ stdenv, fetchurl, pkgconfig, glib, cairo, Carbon, fontconfig
, libtiff, giflib, libungif, libjpeg, libpng, monoDLLFixer
, libXrender, libexif }:
stdenv.mkDerivation rec {
name = "libgdiplus-2.10.9";
src = fetchurl {
url = "http://download.mono-project.com/sources/libgdiplus/${name}.tar.bz2";
sha256 = "0klnbly2q0yx5p0l5z8da9lhqsjj9xqj06kdw2v7rnms4z1vdpkd";
};
NIX_LDFLAGS = "-lgif";
patches =
[ (fetchurl {
url = "https://raw.github.com/MagicGroup/MagicSpecLib/master/libgdiplus/libgdiplus-2.10.1-libpng15.patch";
sha256 = "130r0jm065pjvbz5dkx96w37vj1wqc8fakmi2znribs14g0bl65f";
})
./giflib.patch
];
patchFlags = "-p0";
buildInputs =
[ pkgconfig glib cairo fontconfig libtiff giflib libungif
libjpeg libpng libXrender libexif
]
++ stdenv.lib.optional stdenv.isDarwin Carbon;
meta = {
platforms = stdenv.lib.platforms.unix;
};
}