Skip to content

Commit 655bec2

Browse files
committed
fix: silence stdenv.is{Linux,Darwin} deprecation warnings
1 parent 255a2b1 commit 655bec2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extra/language/rust.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ in
4848
# some *-sys crates require additional includes
4949
name = "CFLAGS";
5050
# append in case it needs to be modified
51-
eval = "\"-I $DEVSHELL_DIR/include ${lib.optionalString pkgs.stdenv.isDarwin "-iframework $DEVSHELL_DIR/Library/Frameworks"}\"";
51+
eval = "\"-I $DEVSHELL_DIR/include ${lib.optionalString pkgs.stdenv.hostPlatform.isDarwin "-iframework $DEVSHELL_DIR/Library/Frameworks"}\"";
5252
}
5353
]
54-
++ lib.optionals pkgs.stdenv.isDarwin [
54+
++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
5555
{
5656
# On darwin for example required for some *-sys crate compilation
5757
name = "RUSTFLAGS";

extra/locale.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ in
2424
};
2525
};
2626
config.env =
27-
lib.optional pkgs.stdenv.isLinux {
27+
lib.optional pkgs.stdenv.hostPlatform.isLinux {
2828
name = "LOCALE_ARCHIVE";
2929
value = "${cfg.package}/lib/locale/locale-archive";
3030
}

0 commit comments

Comments
 (0)