mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-10 22:57:15 +00:00
ba52ae5048
Following legacy packing conventions, `isArm` was defined just for 32-bit ARM instruction set. This is confusing to non packagers though, because Aarch64 is an ARM instruction set. The official ARM overview for ARMv8[1] is surprisingly not confusing, given the overall state of affairs for ARM naming conventions, and offers us a solution. It divides the nomenclature into three levels: ``` ISA: ARMv8 {-A, -R, -M} / \ Mode: Aarch32 Aarch64 | / \ Encoding: A64 A32 T32 ``` At the top is the overall v8 instruction set archicture. Second are the two modes, defined by bitwidth but differing in other semantics too, and buttom are the encodings, (hopefully?) isomorphic if they encode the same mode. The 32 bit encodings are mostly backwards compatible with previous non-Thumb and Thumb encodings, and if so we can pun the mode names to instead mean "sets of compatable or isomorphic encodings", and then voilà we have nice names for 32-bit and 64-bit arm instruction sets which do not use the word ARM so as to not confused either laymen or experienced ARM packages. [1]: https://developer.arm.com/products/architecture/a-profile
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, fetchpatch, autoconf, automake, libtool, autoreconfHook, pkgconfig, libpng, glib /*just passthru*/ }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pixman-${version}";
|
|
version = "0.34.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xorg/individual/lib/${name}.tar.bz2";
|
|
sha256 = "184lazwdpv67zrlxxswpxrdap85wminh1gmq1i5lcz6iycw39fir";
|
|
};
|
|
|
|
patches = stdenv.lib.optionals stdenv.cc.isClang [
|
|
(fetchpatch {
|
|
name = "builtin-shuffle.patch";
|
|
url = https://patchwork.freedesktop.org/patch/177506/raw;
|
|
sha256 = "0rvraq93769dy2im2m022rz99fcdxprgc2fbmasnddcwrqy1x3xr";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ]
|
|
++ stdenv.lib.optionals stdenv.cc.isClang [ autoconf automake libtool autoreconfHook ];
|
|
|
|
buildInputs = stdenv.lib.optional doCheck libpng;
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt";
|
|
|
|
doCheck = true;
|
|
|
|
postInstall = glib.flattenInclude;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://pixman.org;
|
|
description = "A low-level library for pixel manipulation";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|