From 3d20991b2d93654e1bfb05d758820e0df10525ea Mon Sep 17 00:00:00 2001 From: kenny Date: Sun, 11 May 2025 04:11:50 +0300 Subject: [PATCH] Add Rust env --- rust.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rust.nix diff --git a/rust.nix b/rust.nix new file mode 100644 index 0000000..ca0f09d --- /dev/null +++ b/rust.nix @@ -0,0 +1,12 @@ +let + # Pinned nixpkgs, deterministic. Last updated: 2/12/21. + #pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {}; + + # Rolling updates, not deterministic. + pkgs = import (fetchTarball("channel:nixpkgs-unstable")) {}; +in pkgs.mkShell { + buildInputs = [ pkgs.cargo pkgs.rustc pkgs.zsh pkgs.bacon ]; + shellHook = '' + exec zsh + ''; +}