nixpkgs/pkgs/development/libraries/pixman/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, pkg-config
, libpng
, glib /*just passthru*/
# for passthru.tests
, cairo
, qemu
, scribus
, tigervnc
, wlroots
, xwayland
}:
stdenv.mkDerivation rec {
pname = "pixman";
version = "0.42.2";
src = fetchurl {
urls = [
"mirror://xorg/individual/lib/${pname}-${version}.tar.gz"
"https://cairographics.org/releases/${pname}-${version}.tar.gz"
];
hash = "sha256-6hSA762i/ZSLx1Nm98NJ4cltMpfQmj/mJibjjiNKYl4=";
};
separateDebugInfo = !stdenv.hostPlatform.isStatic;
2021-09-13 10:59:29 +02:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpng ];
configureFlags = lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt"
# Disable until https://gitlab.freedesktop.org/pixman/pixman/-/issues/46 is resolved
++ lib.optional (stdenv.isAarch64 && !stdenv.cc.isGNU) "--disable-arm-a64-neon";
2022-07-20 08:55:01 +02:00
preConfigure = ''
# https://gitlab.freedesktop.org/pixman/pixman/-/issues/62
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 184 ? 184 : NIX_BUILD_CORES))
'';
doCheck = true;
2015-03-25 04:54:05 +01:00
postInstall = glib.flattenInclude;
passthru.tests = {
inherit cairo qemu scribus tigervnc wlroots xwayland;
};
meta = with lib; {
homepage = "http://pixman.org";
description = "A low-level library for pixel manipulation";
license = licenses.mit;
platforms = platforms.all;
};
}