nixpkgs/pkgs/development/libraries/pixman/default.nix
Tuomas Tynkkynen 65020eef40 pixman: Enable '--disable-arm-iwmmxt' on ARM
Otherwise the build fails on ARMv6:

  CC       libpixman_iwmmxt_la-pixman-mmx.lo
pixman-mmx.c: In function 'mmx_fetch_x8r8g8b8':
pixman-mmx.c:3812:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
2015-08-17 16:05:01 +03:00

27 lines
717 B
Nix

{ fetchurl, stdenv, pkgconfig, perl, libpng, glib /*just passthru*/ }:
stdenv.mkDerivation rec {
name = "pixman-0.32.6";
src = fetchurl {
url = "http://cairographics.org/releases/${name}.tar.gz";
sha256 = "0129g4zdrw5hif5783li7rzcr4vpbc2cfia91azxmsk0h0xx3zix";
};
nativeBuildInputs = [ pkgconfig perl ];
buildInputs = [ libpng ]; # NOT in closure anyway
postInstall = glib.flattenInclude;
patches = stdenv.lib.optional stdenv.isDarwin ./fix-clang36.patch;
configureFlags = if stdenv.isArm then ["--disable-arm-iwmmxt"] else null;
meta = {
homepage = http://pixman.org;
description = "A low-level library for pixel manipulation";
license = stdenv.lib.licenses.mit;
};
}