diff --git a/flake.nix b/flake.nix index 0808ae21..a030f9a6 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,10 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -28,11 +32,21 @@ self', pkgs, lib, + system, ... }: let version = "0.26.0"; + fenix = inputs.fenix.packages.${system}; + rustToolchain = fenix.complete.withComponents [ + "cargo" + "clippy" + "rust-src" + "rustc" + "rustfmt" + ]; + src = pkgs.lib.cleanSourceWith { src = ./.; filter =