2015-09-22 18:44:16 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, libpng, glib /*just passthru*/ }:
|
2013-01-31 21:50:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-22 18:44:16 +02:00
|
|
|
name = "pixman-0.32.8";
|
2013-01-31 21:50:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-22 18:44:16 +02:00
|
|
|
url = "mirror://xorg/individual/lib/${name}.tar.bz2";
|
|
|
|
sha1 = "5c57045622265b877c9bf02d531973eadf942140";
|
2013-01-31 21:50:30 +01:00
|
|
|
};
|
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin ./fix-clang36.patch;
|
2013-04-18 21:31:56 +02:00
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = stdenv.lib.optional doCheck libpng;
|
2013-04-18 21:31:56 +02:00
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isArm "--disable-arm-iwmmxt";
|
2013-01-31 21:50:30 +01:00
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
doCheck = true;
|
2015-03-25 04:54:05 +01:00
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
postInstall = glib.flattenInclude;
|
2015-08-16 18:27:40 +02:00
|
|
|
|
2015-09-22 18:44:16 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-31 21:50:30 +01:00
|
|
|
homepage = http://pixman.org;
|
|
|
|
description = "A low-level library for pixel manipulation";
|
2015-09-22 18:44:16 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2013-01-31 21:50:30 +01:00
|
|
|
};
|
|
|
|
}
|