perlPackages.SysCPU: fix checkPhase on Aarch64

This commit is contained in:
Izorkin 2019-10-11 10:38:33 +03:00
parent 8ef9a614b6
commit 144735a049

View file

@ -16674,6 +16674,18 @@ let
url = mirror://cpan/authors/id/M/MZ/MZSANFORD/Sys-CPU-0.61.tar.gz;
sha256 = "1r6976bs86j7zp51m5vh42xlyah951jgdlkimv202413kjvqc2i5";
};
patches = [
# Bug #95400 for Sys-CPU: Tests fail on ARM and AArch64 Linux
# https://rt.cpan.org/Public/Bug/Display.html?id=95400
(fetchpatch {
url = "https://rt.cpan.org/Ticket/Attachment/1359669/721669/0001-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch";
sha256 = "0rmazzdy34znksdhh8drc83lk754slhjgvnk4kk27z3kw5gm10m0";
})
(fetchpatch {
url = "https://rt.cpan.org/Ticket/Attachment/1388036/737125/0002-cpu_clock-can-be-undefined-on-an-ARM.patch";
sha256 = "0z3wqfahc9av7y34aqp6biq3sf8v8q4yynx7bv290vds50dsjb4w";
})
];
buildInputs = stdenv.lib.optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Carbon;
doCheck = !stdenv.isAarch64;
};