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