aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 86f52e786439f5bcab716e9f393bd81230204b1e (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
26
27
28
29
30
{
  description = "Molerat client implementation";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
  };

  outputs = { self, nixpkgs }:
  let 
    system = "aarch64-darwin";
    pkgs = nixpkgs.legacyPackages.${system};
  in {
    devShells.${system}.default = 
      pkgs.mkShell {
        buildInputs = with pkgs; [
          rustc
          rustfmt
          cargo
          rust-analyzer
          libiconv
          clippy
          pkg-config
          darwin.apple_sdk.frameworks.SystemConfiguration
        ];
        shellHook = ''
          exec zsh
        '';
      };
  };
}