From 1d888631c3e4c423c2b782b01ca29fc1057c51a2 Mon Sep 17 00:00:00 2001 From: Maxwell Beck Date: Sun, 30 Mar 2025 15:46:30 -0500 Subject: Initial commit --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f425c9b --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, fenix }: + let + system = "aarch64-darwin"; + pkgs = nixpkgs.legacyPackages.${system}; + fpkgs = fenix.packages.${system}; + rust = with fpkgs; combine (with stable; [ + defaultToolchain + rust-analyzer + rust-src + ]); + in rec { + devShells.${system}.default = pkgs.mkShell { + packages = [ rust ]; + }; + }; +} -- cgit 1.4.1