From d5b1e9f9ec48238358aa9327a2cd85487638fbe5 Mon Sep 17 00:00:00 2001 From: Andrew Shebanow Date: Tue, 15 Sep 2026 17:18:21 -0700 Subject: [PATCH] fix(flake): use stdenv.hostPlatform.isDarwin in commonArgs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `pkgs.stdenv.isDarwin` is a deprecated alias in nixpkgs — it is defined as `lib.warn "stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead"` wrapping the real value (pkgs/stdenv/generic/default.nix, added 2026-05-09). Reading it emits that warning on every evaluation of this flake, so downstream consumers see it on every `nix develop`, and it becomes a hard error once nixpkgs drops the alias. `stdenv.hostPlatform.isDarwin` is the identical boolean, so libiconv is still selected on Darwin and the build inputs are unchanged. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index b19435704e..86c4dfbfdf 100644 --- a/flake.nix +++ b/flake.nix @@ -76,7 +76,7 @@ # Required for tree-sitter (syntax-highlighting feature, enabled by default) tree-sitter ] - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ + ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ libiconv ];