From 655bec2b8e80a790e32bc15806c119fbb04b1167 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Mon, 24 Aug 2026 00:39:45 +0200 Subject: [PATCH] fix: silence stdenv.is{Linux,Darwin} deprecation warnings --- extra/language/rust.nix | 4 ++-- extra/locale.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/language/rust.nix b/extra/language/rust.nix index 2b1f433..5020c3a 100644 --- a/extra/language/rust.nix +++ b/extra/language/rust.nix @@ -48,10 +48,10 @@ in # some *-sys crates require additional includes name = "CFLAGS"; # append in case it needs to be modified - eval = "\"-I $DEVSHELL_DIR/include ${lib.optionalString pkgs.stdenv.isDarwin "-iframework $DEVSHELL_DIR/Library/Frameworks"}\""; + eval = "\"-I $DEVSHELL_DIR/include ${lib.optionalString pkgs.stdenv.hostPlatform.isDarwin "-iframework $DEVSHELL_DIR/Library/Frameworks"}\""; } ] - ++ lib.optionals pkgs.stdenv.isDarwin [ + ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ { # On darwin for example required for some *-sys crate compilation name = "RUSTFLAGS"; diff --git a/extra/locale.nix b/extra/locale.nix index 1d80c8e..185b32e 100644 --- a/extra/locale.nix +++ b/extra/locale.nix @@ -24,7 +24,7 @@ in }; }; config.env = - lib.optional pkgs.stdenv.isLinux { + lib.optional pkgs.stdenv.hostPlatform.isLinux { name = "LOCALE_ARCHIVE"; value = "${cfg.package}/lib/locale/locale-archive"; }