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"; }