Repository navigation
build(nix): use stdenv.hostPlatform for platform checks - #1125
Merged
Merged
Conversation
stdenv.isLinux and stdenv.isDarwin are deprecated in nixpkgs and print an evaluation warning in every consumer of this flake: evaluation warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead Switch to the stdenv.hostPlatform equivalents. Behaviour is unchanged: x86_64-linux and aarch64-darwin evaluate the same package sets, now with no warnings.
Owner
|
@luizribeiro Thanks for the cleanup! PR merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
stdenv.isLinuxandstdenv.isDarwinare deprecated in nixpkgs, so every flake that uses audio.cpp as an input prints:This renames the 6 uses in
flake.nixand.devops/nix/package.nixtostdenv.hostPlatform.isLinux/isDarwin. Same semantics, build wiring only: no change to outputs, performance or memory.I checked that x86_64-linux and aarch64-darwin still evaluate the same packages as before (linux: cpu, cuda, default, python-scripts, rocm, rocm-gfx1151, vulkan; darwin: cpu, default, metal, python-scripts, vulkan), now with no warnings.