Updated shell.nix

pull/8/head
mark 2023-09-21 20:52:35 -07:00
parent 413c34c440
commit 32463ad6aa
1 changed files with 13 additions and 2 deletions

View File

@ -1,11 +1,22 @@
{ nixpkgs ? import <nixpkgs> { }}:
let 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 { in pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
cargo cargo
rustc rustc
rustfmt rustfmt
m4 rust-analyzer
wasm-pack
]; ];
} }