Skip to content

Instantly share code, notes, and snippets.

@101v
Last active October 31, 2022 11:14
Show Gist options
  • Save 101v/1030502e92cf259aab31d13cb12dcb00 to your computer and use it in GitHub Desktop.
Save 101v/1030502e92cf259aab31d13cb12dcb00 to your computer and use it in GitHub Desktop.
shell.nix file for rust
{pkgs ? import <nixpkgs> {}}: let
cargo-run-bin = pkgs.rustPlatform.buildRustPackage rec {
pname = "cargo-run-bin";
version = "0.3.1";
src = pkgs.fetchCrate {
inherit pname version;
sha256 = "sha256-4zu3vXlGKmBlB5we3qR0V6LIALqPxVGosBF4EkO7aHE=";
};
cargoSha256 = "sha256-B5SCZDdfvrE3HeVVX79W6gvxxIiiVX3PrIWG2jR5VgA=";
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
rnix-lsp
alejandra
rustup
cargo-edit
cargo-watch
rust-analyzer
cargo-run-bin
openssl # cargo-make
pkg-config # cargo-make
mob
nodejs
];
MOB_TIMER_ROOM = "yellow-porpoise-86";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment