Skip to content

fix: use hostPlatform for stdenv platform checks - #256

Merged
dpc merged 1 commit into
rustshop:masterfrom
bansalayush247:fix/stdenv-host-platform
Nov 24, 2026
Merged

dpc merged 1 commit into
rustshop:masterfrom
bansalayush247:fix/stdenv-host-platform

Conversation

@bansalayush247

@bansalayush247 bansalayush247 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace deprecated stdenv platform aliases with hostPlatform checks
  • update Linux, Darwin, and AArch64 conditionals in library code
  • update the same conditionals in Flakebox checks
  • preserve custom stdenv handling through baseStdenv.hostPlatform

Recent nixpkgs versions warn that stdenv.isLinux, stdenv.isDarwin, and stdenv.isAarch64 are deprecated. Using stdenv.hostPlatform keeps the existing host-platform semantics while removing those evaluation warnings.

Reproduction

nix develop emits these deprecation warnings:

stdenv-deprecation-warnings

Validation

  • formatted all changed Nix files with nixfmt 1.5.0 from nixos-26.05
  • evaluated devShells.aarch64-darwin.default successfully
  • evaluated devShells.x86_64-linux.default successfully
  • confirmed no deprecated stdenv platform aliases remain in Nix sources

@bansalayush247
bansalayush247 force-pushed the fix/stdenv-host-platform branch from 6c38c22 to 20507a1 Compare November 24, 2026 14:27
@dpc
dpc enabled auto-merge (rebase) November 24, 2026 16:51
@dpc
dpc merged commit e636b15 into rustshop:master Nov 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants