From 764b501077d5d673f9dd0d13759f9345d5d51a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Milojevi=C4=87?= Date: Thu, 5 Mar 2026 13:25:02 +0100 Subject: [PATCH 1/2] fix: remove legacy darwin.apple_sdk reference in flake.nix `darwin.apple_sdk` has been removed from nixpkgs-unstable as a legacy compatibility stub. The Security framework is now provided by the default Apple SDK included in stdenv, so the explicit dependency is no longer needed. Also updates `stdenv.isLinux`/`stdenv.isDarwin` to the non-deprecated `stdenv.hostPlatform.isLinux`/`stdenv.hostPlatform.isDarwin`. --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 5af2b10..c00ac02 100644 --- a/flake.nix +++ b/flake.nix @@ -24,7 +24,6 @@ darwinDeps = with pkgs; [ libiconv - darwin.apple_sdk.frameworks.Security ]; gws = pkgs.rustPlatform.buildRustPackage { @@ -38,8 +37,8 @@ }; nativeBuildInputs = [ pkgs.pkg-config ]; - buildInputs = pkgs.lib.optionals pkgs.stdenv.isLinux linuxDeps - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin darwinDeps; + buildInputs = pkgs.lib.optionals pkgs.stdenv.hostPlatform.isLinux linuxDeps + ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin darwinDeps; # Tests are disabled by default in buildRustPackage if not specified, # but we'll be explicit. Some tests might require network. From 97c9132c9ba0ff846dcae57a71bacad34a280415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Milojevi=C4=87?= Date: Thu, 5 Mar 2026 17:53:54 +0100 Subject: [PATCH 2/2] chore: add changeset for darwin.apple_sdk fix --- .changeset/fix-nix-flake-darwin.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .changeset/fix-nix-flake-darwin.md diff --git a/.changeset/fix-nix-flake-darwin.md b/.changeset/fix-nix-flake-darwin.md new file mode 100644 index 0000000..639476b --- /dev/null +++ b/.changeset/fix-nix-flake-darwin.md @@ -0,0 +1,4 @@ +--- +--- + +fix: remove legacy darwin.apple_sdk reference in flake.nix