oppiliappan/statix

error: attribute 'targetPlatforms' missing

Closed this issue · 2 comments

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

given that:

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
}

Appreciate the response, that works, thanks!