about summary refs log tree commit diff
path: root/pkgs/development/embedded
diff options
context:
space:
mode:
authorLeah Amelia Chen <hi@pluie.me>2024-05-06 11:48:33 +0200
committerLeah Amelia Chen <hi@pluie.me>2024-05-06 11:51:07 +0200
commit9c540730ea8807c53155919fb6778e23df5c0309 (patch)
treec89a06dc436020ca866b2fe537da4fe66b22888c /pkgs/development/embedded
parentfc55cdb8340a3258a1ad6f3eb8df52dac36c3e70 (diff)
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.
Diffstat (limited to 'pkgs/development/embedded')
-rw-r--r--pkgs/development/embedded/bossa/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/embedded/bossa/default.nix b/pkgs/development/embedded/bossa/default.nix
index 58ee0642fb380..0444a2000a46e 100644
--- a/pkgs/development/embedded/bossa/default.nix
+++ b/pkgs/development/embedded/bossa/default.nix
@@ -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" ""