From 022574877dbabc1fbb386dc3b59765de528107c9 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Tue, 5 Mar 2024 23:34:55 -0500 Subject: Initial commit --- flake.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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 + ''; + }; + }; +} -- cgit v1.2.3