aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 9eceed3f2b243de0f58380fe805e92aaf49c2d9d (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
{
  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
        ];
        shellHook = ''
          exec zsh
        '';
      };
  };
}