Skip to content

chore: switch stdenv.is* to stdenv.hostPlatform.is* - #160

Closed
bLuka wants to merge 1 commit into
numtide:mainfrom
bLuka:chore/pkgs-stdenv-is-deprecation
Closed

chore: switch stdenv.is* to stdenv.hostPlatform.is*#160
bLuka wants to merge 1 commit into
numtide:mainfrom
bLuka:chore/pkgs-stdenv-is-deprecation

Conversation

@bLuka

@bLuka bLuka commented Sep 1, 2026

Copy link
Copy Markdown

Update pkgs.stdenv.is* as it has been deprecated from nixpkgs: NixOS/nixpkgs@4bb4cff

   stdenv: deprecate is* aliases in favor of hostPlatform.is*
   These shorthands hide the platform distinction and are unfit for
   cross-compilation. Wrap them in `lib.warn` so each access prints a
   deprecation notice, and gate them on `config.allowAliases` so they
   can be removed entirely.

The commit introduces a deprecation notice:

   lib.warn "stdenv.${name} is deprecated, use stdenv.hostPlatform.${name} instead" value

Update pkgs.stdenv.is* as it has been deprecated from nixpkgs:
NixOS/nixpkgs@4bb4cff

```
   stdenv: deprecate is* aliases in favor of hostPlatform.is*
   These shorthands hide the platform distinction and are unfit for
   cross-compilation. Wrap them in `lib.warn` so each access prints a
   deprecation notice, and gate them on `config.allowAliases` so they
   can be removed entirely.
```

The commit introduces a deprecation notice:

```nix
   lib.warn "stdenv.${name} is deprecated, use stdenv.hostPlatform.${name} instead" value
```
@mergify

mergify Bot commented Sep 1, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@nim65s

nim65s commented Sep 4, 2026

Copy link
Copy Markdown

This PR is exactly the same as the previous one, #159, which is already merged.

@bLuka

bLuka commented Sep 4, 2026

Copy link
Copy Markdown
Author

Oh, apologies, tried to have a look via a Github search and missed it.

Thank you for the merge!

@bLuka bLuka closed this Sep 4, 2026
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