diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-12 20:21:49 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-13 11:10:39 +0200 |
commit | 6dfc689e95f2085bac2ac9c949ccfd5ce4b639ec (patch) | |
tree | d393d5922e44dd303c543b092847bf4901ae4e99 | |
parent | 9f7053ffc1bd0baff9a792fd47b568dd3f4582a5 (diff) |
cinny: fix build on x86_64-darwin
-rw-r--r-- | pkgs/applications/networking/instant-messengers/cinny/default.nix | 5 |
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 |