Skip to content

fix(nix): use stdenv.hostPlatform.isLinux - #1101

Open
patrickhaahr wants to merge 1 commit into
modem-dev:mainfrom
patrickhaahr:fix/nix-stdenv-hostplatform
Open

fix(nix): use stdenv.hostPlatform.isLinux#1101
patrickhaahr wants to merge 1 commit into
modem-dev:mainfrom
patrickhaahr:fix/nix-stdenv-hostplatform

Conversation

@patrickhaahr

Copy link
Copy Markdown

stdenv.isLinux is deprecated in nixpkgs and prints an evaluation warning. Anyone who consumes this flake with inputs.nixpkgs.follows (e.g. their own NixOS config) sees it on every nixos-rebuild switch while evaluating hunkdiff:

evaluation warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
  • nix/package.nix: stdenv.isLinux -> stdenv.hostPlatform.isLinux
  • empty changeset (packaging-only)

Checked by evaluating the package against nixpkgs/nixos-unstable (head 392cb7f): 1 warning. With this patch: 0.

nix eval --override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable github:modem-dev/hunk/392cb7f99661270ff77df1f6c6bae9d9f5a0f156#packages.x86_64-linux.default.outPath

@greptile-apps

greptile-apps Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

@patrickhaahr is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant