lol

libunwind: fix for aarch64 and non-4K pages (#166006)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

authored by

Thomas
Sandro
and committed by
GitHub
e9cfdc6b ef9896e7

+9 -1
+9 -1
pkgs/development/libraries/libunwind/default.nix
··· 1 - { stdenv, lib, fetchurl, autoreconfHook, xz, buildPackages }: 1 + { stdenv, lib, fetchurl, fetchpatch, autoreconfHook, xz, buildPackages }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libunwind"; ··· 8 8 url = "mirror://savannah/libunwind/${pname}-${version}.tar.gz"; 9 9 sha256 = "sha256-SmrsZmmR+0XQiJxErt6K1usQgHHDVU/N/2cfnJR5SXY="; 10 10 }; 11 + 12 + patches = [ 13 + # Fix for aarch64 and non-4K pages. Remove once upgraded past 1.6.2. 14 + (fetchpatch { 15 + url = "https://github.com/libunwind/libunwind/commit/e85b65cec757ef589f28957d0c6c21c498a03bdf.patch"; 16 + sha256 = "1lnlygvhqrdrjgw303pg2k2k4ms4gaghpjsgmhk47q83vy1yjwfg"; 17 + }) 18 + ]; 11 19 12 20 postPatch = if stdenv.cc.isClang then '' 13 21 substituteInPlace configure.ac --replace "-lgcc_s" ""