From bfff42498a3115963d259b21314b61b7458712cc Mon Sep 17 00:00:00 2001 From: Agahnim Date: Thu, 19 Mar 2026 13:55:25 +0100 Subject: [PATCH] add envrc --- .envrc | 1 + flake.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .envrc create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e8c0027 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Rust dev flake"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + outputs = { + self, + nixpkgs, + }: let + system = "x86_64-linux"; + pkgs = import nixpkgs {inherit system;}; + in { + devShells."x86_64-linux".default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + ]; + buildInputs = with pkgs; [ + rustc + rust-analyzer + rustfmt + clippy + cargo + cargo-watch + ]; + shellHook = '' + echo "Shell prĂȘt" + ''; + }; + }; +}