2014-07-09 19:44:49 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, perl, libpng, glib /*just passthru*/ }:
|
2013-01-31 20:50:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-07-09 19:44:49 +01:00
|
|
|
name = "pixman-0.32.6";
|
2013-01-31 20:50:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://cairographics.org/releases/${name}.tar.gz";
|
2014-07-09 19:44:49 +01:00
|
|
|
sha256 = "0129g4zdrw5hif5783li7rzcr4vpbc2cfia91azxmsk0h0xx3zix";
|
2013-01-31 20:50:30 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 20:31:56 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig perl ];
|
|
|
|
|
2014-07-09 19:44:49 +01:00
|
|
|
buildInputs = [ libpng ]; # NOT in closure anyway
|
2013-04-18 20:31:56 +01:00
|
|
|
|
|
|
|
postInstall = glib.flattenInclude;
|
2013-01-31 20:50:30 +00:00
|
|
|
|
2015-03-25 03:54:05 +00:00
|
|
|
patches = stdenv.lib.optional (stdenv.cc.cc.isClang or false) ./fix-clang36.patch;
|
|
|
|
|
2013-01-31 20:50:30 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://pixman.org;
|
|
|
|
description = "A low-level library for pixel manipulation";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-01-31 20:50:30 +00:00
|
|
|
};
|
|
|
|
}
|