6 , glib /*just passthru*/
17 stdenv.mkDerivation rec {
23 "mirror://xorg/individual/lib/${pname}-${version}.tar.gz"
24 "https://cairographics.org/releases/${pname}-${version}.tar.gz"
26 hash = "sha256-6hSA762i/ZSLx1Nm98NJ4cltMpfQmj/mJibjjiNKYl4=";
29 separateDebugInfo = !stdenv.hostPlatform.isStatic;
31 nativeBuildInputs = [ pkg-config ];
33 buildInputs = [ libpng ];
35 configureFlags = lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt"
36 # Disable until https://gitlab.freedesktop.org/pixman/pixman/-/issues/46 is resolved
37 ++ lib.optional (stdenv.isAarch64 && !stdenv.cc.isGNU) "--disable-arm-a64-neon";
40 # https://gitlab.freedesktop.org/pixman/pixman/-/issues/62
41 export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 184 ? 184 : NIX_BUILD_CORES))
46 postInstall = glib.flattenInclude;
49 inherit cairo qemu scribus tigervnc wlroots xwayland;
53 homepage = "http://pixman.org";
54 description = "A low-level library for pixel manipulation";
55 license = licenses.mit;
56 platforms = platforms.all;