Skip to content

Commit 9c54073

Browse files
committed
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.
1 parent fc55cdb commit 9c54073

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/development/embedded/bossa/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
, libX11
66
, readline
77
, darwin
8+
, fetchpatch
89
}:
910

1011
let
@@ -31,6 +32,15 @@ stdenv.mkDerivation rec {
3132
sha256 = "sha256-8M3MU/+Y1L6SaQ1yoC9Z27A/gGruZdopLnL1z7h7YJw=";
3233
};
3334

35+
patches = [
36+
(fetchpatch {
37+
# Required for building on Darwin with clang >=15.
38+
name = "pr-172-fix.patch";
39+
url = "https://github.com/shumatech/BOSSA/commit/6e54973c3c758674c3d04b5e2cf12e097006f6a3.patch";
40+
hash = "sha256-2lp6Ej3IfofztC1n/yHLjabn0MH4BA/CM3dsnAw8klA=";
41+
})
42+
];
43+
3444
postPatch = ''
3545
substituteInPlace Makefile \
3646
--replace "-arch x86_64" ""

0 commit comments

Comments
 (0)