From 02871d95ebeb1ad52f68a69dc86d1736aab1fb21 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 9 Nov 2024 00:23:35 +0100 Subject: [PATCH] mesonlsp: fix aarch64-darwin build, mark as broken on x86_64-darwin --- pkgs/by-name/me/mesonlsp/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/me/mesonlsp/package.nix b/pkgs/by-name/me/mesonlsp/package.nix index 494624b142f6..bd8c30791060 100644 --- a/pkgs/by-name/me/mesonlsp/package.nix +++ b/pkgs/by-name/me/mesonlsp/package.nix @@ -1,6 +1,7 @@ { lib, stdenv, + llvmPackages_19, fetchFromGitHub, gtest, @@ -23,7 +24,10 @@ testers, }: -stdenv.mkDerivation (finalAttrs: { +let + stdenv' = if stdenv.hostPlatform.isDarwin then llvmPackages_19.stdenv else stdenv; +in +stdenv'.mkDerivation (finalAttrs: { pname = "mesonlsp"; version = "4.3.7"; @@ -163,5 +167,7 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "mesonlsp"; maintainers = with maintainers; [ paveloom ]; platforms = platforms.unix; + # ../src/liblog/log.cpp:41:7: error: call to 'format' is ambiguous + broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64; }; })