summary refs log tree commit diff
path: root/flake.nix
blob: f425c9b1234dcc6cedcc88227ffedf4f22b297ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
    fenix = {
      url = "github:nix-community/fenix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, fenix }:
    let
      system = "aarch64-darwin";
      pkgs = nixpkgs.legacyPackages.${system};
      fpkgs = fenix.packages.${system};
      rust = with fpkgs; combine (with stable; [
        defaultToolchain
        rust-analyzer
        rust-src
      ]);
    in rec {
      devShells.${system}.default = pkgs.mkShell {
        packages = [ rust ];
      };
    };
}