Last active
October 31, 2022 11:14
-
-
Save 101v/1030502e92cf259aab31d13cb12dcb00 to your computer and use it in GitHub Desktop.
shell.nix file for rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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