bossa: fix build failure on Darwin with clang >= 15
See shumatech/BOSSA#172. Essentially, recent versions of macOS started shipping clang version above 15, which promoted the unqualified-std-cast-call warning into a hard error. Unfortunately, it seems like upstream is dormant as of now, so we have to apply the patch ourselves.
This commit is contained in:
parent
fc55cdb834
commit
9c540730ea
|
@ -5,6 +5,7 @@
|
|||
, libX11
|
||||
, readline
|
||||
, darwin
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -31,6 +32,15 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-8M3MU/+Y1L6SaQ1yoC9Z27A/gGruZdopLnL1z7h7YJw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Required for building on Darwin with clang >=15.
|
||||
name = "pr-172-fix.patch";
|
||||
url = "https://github.com/shumatech/BOSSA/commit/6e54973c3c758674c3d04b5e2cf12e097006f6a3.patch";
|
||||
hash = "sha256-2lp6Ej3IfofztC1n/yHLjabn0MH4BA/CM3dsnAw8klA=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "-arch x86_64" ""
|
||||
|
|
Loading…
Reference in New Issue