From 00102beb298296b793e164f2455fa7d4cd4b70d2 Mon Sep 17 00:00:00 2001 From: Timm Behner Date: Wed, 6 Mar 2024 09:49:20 +0100 Subject: [PATCH] nix: Fix linker error on macos 14.3 with nix build Using nix build resulted in a linker error ld: framework not found Security Following the proposed solution in https://discourse.nixos.org/t/compile-a-rust-binary-on-macos-dbcrossbar/8612 resolves the issue. --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index c15d8aa5..ace294ee 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,7 @@ ++ lib.optionals pkgs.stdenv.isDarwin [ # Additional darwin specific inputs can be set here pkgs.libiconv + pkgs.darwin.apple_sdk.frameworks.Security ]; preBuild = lib.optionalString (self.shortRev or null != null) '' export GIT_HEAD=${self.shortRev}