From 32463ad6aa309b62cbb145c147a61c619af0e5f3 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 21 Sep 2023 20:52:35 -0700 Subject: [PATCH] Updated shell.nix --- shell.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index dff6d69..98d2bc8 100644 --- a/shell.nix +++ b/shell.nix @@ -1,11 +1,22 @@ +{ nixpkgs ? import { }}: let - pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/f155f0cf4ea43c4e3c8918d2d327d44777b6cad4.tar.gz") {}; + # If you set hash to an empty string, you'll get + # an error with the correct hash. + pinnedPkgs = nixpkgs.fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs"; + rev = "4ecab3273592f27479a583fb6d975d4aba3486fe"; + sha256 = "btHN1czJ6rzteeCuE/PNrdssqYD2nIA4w48miQAFloM="; + }; + pkgs = import pinnedPkgs {}; + in pkgs.mkShell { buildInputs = with pkgs; [ cargo rustc rustfmt - m4 + rust-analyzer + wasm-pack ]; }