diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c59cb93 --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + 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 + ]; + shellHook = '' + exec zsh + ''; + }; + }; +} |