daisy/shell.nix

23 lines
488 B
Nix
Raw Permalink Normal View History

2023-09-21 20:52:35 -07:00
{ nixpkgs ? import <nixpkgs> { }}:
2023-09-03 13:12:22 -07:00
let
2023-09-21 20:52:35 -07:00
# 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 {};
2023-09-03 13:12:22 -07:00
in pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
rustfmt
2023-09-21 20:52:35 -07:00
rust-analyzer
wasm-pack
2023-09-03 13:12:22 -07:00
];
}