2013-04-18 21:31:56 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, perl, withPNG ? true, libpng, glib /*just passthru*/ }:
|
2013-01-31 21:50:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-09 16:31:39 +02:00
|
|
|
name = "pixman-0.30.2";
|
2013-01-31 21:50:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://cairographics.org/releases/${name}.tar.gz";
|
2013-08-09 16:31:39 +02:00
|
|
|
sha256 = "1sgnpx34pj3245a9v8056jddc4cg4xxkqdjvvw6k2hnprhh8k65x";
|
2013-01-31 21:50:30 +01:00
|
|
|
};
|
|
|
|
|
2013-04-18 21:31:56 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig perl ];
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional withPNG [ libpng ]; # NOT in closure anyway
|
|
|
|
|
|
|
|
postInstall = glib.flattenInclude;
|
2013-01-31 21:50:30 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://pixman.org;
|
|
|
|
description = "A low-level library for pixel manipulation";
|
|
|
|
license = "MIT";
|
|
|
|
};
|
|
|
|
}
|