rlottie: fix build on darwin

This commit is contained in:
Mathis Antony
2026-05-16 16:20:24 +02:00
committed by Michael Daniels
parent 870b51c5a6
commit 890d046e97
2 changed files with 21 additions and 0 deletions
+5
View File
@@ -25,6 +25,11 @@ stdenv.mkDerivation {
pkg-config
];
patches = [
# rename format to run-clang-format to avoid conflict
./rename_format_to_run-clang-format.patch
];
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
) "-U__ARM_NEON__";
@@ -0,0 +1,16 @@
From c949a713c36cd7a5cf95dd0d07a5660c0204ce0d Mon Sep 17 00:00:00 2001
From: Mathis Antony <sveitser@gmail.com>
Date: Sat, 16 May 2026 14:35:08 +0200
Subject: [PATCH] rename format to run-clang-format
- `format` conflicts with the C++ <format> header
- fixes: https://hydra.nixos.org/build/327171293/nixlog/1
---
format => run-clang-format | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename format => run-clang-format (100%)
diff --git a/format b/run-clang-format
similarity index 100%
rename from format
rename to run-clang-format