about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/cinny
diff options
context:
space:
mode:
authorTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-05-12 20:21:49 +0200
committerTomaSajt <62384384+TomaSajt@users.noreply.github.com>2024-05-13 11:10:39 +0200
commit6dfc689e95f2085bac2ac9c949ccfd5ce4b639ec (patch)
treed393d5922e44dd303c543b092847bf4901ae4e99 /pkgs/applications/networking/instant-messengers/cinny
parent9f7053ffc1bd0baff9a792fd47b568dd3f4582a5 (diff)
cinny: fix build on x86_64-darwin
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/cinny')
-rw-r--r--pkgs/applications/networking/instant-messengers/cinny/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/cinny/default.nix b/pkgs/applications/networking/instant-messengers/cinny/default.nix
index db3b48e4a2a37..87e3d17314014 100644
--- a/pkgs/applications/networking/instant-messengers/cinny/default.nix
+++ b/pkgs/applications/networking/instant-messengers/cinny/default.nix
@@ -29,6 +29,11 @@ buildNpmPackage rec {
 
   npmDepsHash = "sha256-4R+To2LhcnEM9x1noo6MhCckyBKgPWiAi7zgDqAmaN0=";
 
+  # Fix error: no member named 'aligned_alloc' in the global namespace
+  env.NIX_CFLAGS_COMPILE = lib.optionalString (
+    stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0"
+  ) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1";
+
   nativeBuildInputs = [
     jq
     python3