Replace deprecated stdenv.isX with stdenv.hostPlatform.isX #8111

Merged
Mic92 merged 1 commits from fix-stdenv-deprecations into main 2026-09-23 14:44:49 +00:00
Owner

Fixes the evaluation warnings emitted while evaluating most checks:

stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead
stdenv.isAarch64 is deprecated, use stdenv.hostPlatform.isAarch64 instead

Mechanical rewrite of all 14 in-repo usages (stdenv.isLinux / isDarwin / isAarch64 and stdenvNoCC.isDarwin) to their hostPlatform equivalents. Verified by evaluating the affected check derivations on all three systems.

One warning remains on checks.*-linux.all-packages: it originates in the disko flake input (package.nix uses stdenv.isDarwin) and needs an upstream fix.

Fixes the evaluation warnings emitted while evaluating most checks: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead stdenv.isAarch64 is deprecated, use stdenv.hostPlatform.isAarch64 instead Mechanical rewrite of all 14 in-repo usages (`stdenv.isLinux` / `isDarwin` / `isAarch64` and `stdenvNoCC.isDarwin`) to their `hostPlatform` equivalents. Verified by evaluating the affected check derivations on all three systems. One warning remains on `checks.*-linux.all-packages`: it originates in the disko flake input (`package.nix` uses `stdenv.isDarwin`) and needs an upstream fix.
pinpox added 1 commit 2026-09-19 07:25:58 +00:00
Replace deprecated stdenv.isLinux/isDarwin/isAarch64 with stdenv.hostPlatform equivalents
PR Size Review Check / pr-size-review-gate (pull_request) Successful in 17s
sizelint on each commit / sizelint (pull_request) Successful in 21s
buildbot/nix-eval evaluation succeeded in 1m 8s (1 warning)
buildbot/nix-build 150 attributes built
gitea-mq Merge queue passed
gitea-mq/buildbot/nix-eval evaluation succeeded in 1m 17s (1 warning)
gitea-mq/buildbot/nix-build 150 attributes built
179ede09ae
Fixes evaluation warnings like:
  stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
emitted while evaluating most checks.
pinpox force-pushed fix-stdenv-deprecations from b884c55929 to 179ede09ae 2026-09-19 07:25:58 +00:00 Compare
Mic92 scheduled this pull request to auto merge when all checks succeed 2026-09-23 14:06:53 +00:00
Mic92 merged commit c612dac4b2 into main 2026-09-23 14:44:49 +00:00
Mic92 deleted branch fix-stdenv-deprecations 2026-09-23 14:44:50 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/clan-core#8111