2018-02-01 20:21:08 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, autoconf, automake, libtool, pkgconfig, libpng, glib /*just passthru*/ }:
|
2013-01-31 20:50:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-01 20:21:08 +00:00
|
|
|
name = "pixman-${version}";
|
|
|
|
version = "0.34.0";
|
2013-01-31 20:50:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-22 16:44:16 +00:00
|
|
|
url = "mirror://xorg/individual/lib/${name}.tar.bz2";
|
2016-02-27 15:51:30 +00:00
|
|
|
sha256 = "184lazwdpv67zrlxxswpxrdap85wminh1gmq1i5lcz6iycw39fir";
|
2013-01-31 20:50:30 +00:00
|
|
|
};
|
|
|
|
|
2018-02-01 20:21:08 +00:00
|
|
|
patches = stdenv.lib.optionals stdenv.cc.isClang [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "builtin-shuffle.patch";
|
|
|
|
url = https://patchwork.freedesktop.org/patch/177506/raw;
|
|
|
|
sha256 = "0rvraq93769dy2im2m022rz99fcdxprgc2fbmasnddcwrqy1x3xr";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ]
|
|
|
|
++ stdenv.lib.optionals stdenv.cc.isClang [ autoconf automake libtool ];
|
2013-04-18 19:31:56 +00:00
|
|
|
|
2015-09-22 16:44:16 +00:00
|
|
|
buildInputs = stdenv.lib.optional doCheck libpng;
|
2013-04-18 19:31:56 +00:00
|
|
|
|
2015-09-22 16:44:16 +00:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isArm "--disable-arm-iwmmxt";
|
2013-01-31 20:50:30 +00:00
|
|
|
|
2015-09-22 16:44:16 +00:00
|
|
|
doCheck = true;
|
2015-03-25 03:54:05 +00:00
|
|
|
|
2015-09-22 16:44:16 +00:00
|
|
|
postInstall = glib.flattenInclude;
|
2015-08-16 16:27:40 +00:00
|
|
|
|
2015-09-22 16:44:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-01-31 20:50:30 +00:00
|
|
|
homepage = http://pixman.org;
|
|
|
|
description = "A low-level library for pixel manipulation";
|
2015-09-22 16:44:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2013-01-31 20:50:30 +00:00
|
|
|
};
|
|
|
|
}
|