error: attribute 'targetPlatforms' missing
Closed this issue · 2 comments
gvolpe commented
Bumping into this error when trying to build the latest commit against the latest nixos-unstable.
I'm not that familiar with Rust, but apparently something like this should fix the issue.
Related: NixOS/nixpkgs#348832
minhtrancccp commented
given that:
statix
depends onfenix
for its rust compilation- technically it was
fenix
's fault, and has been fixed upstream - the last commit on
statix
was over a year ago
i would say it might be better to just manually follow fenix
in your flake.nix
. for those unfamiliar:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; # or your preferred `nixpkgs` branch
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
statix = {
url = "github:oppiliappan/statix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.fenix.follows = "fenix";
};
};
# the rest of your `flake.nix` here
}
gvolpe commented
Appreciate the response, that works, thanks!