just/shell.nix
2025-11-26 11:20:46 +01:00

20 lines
498 B
Nix

let
rust-overlay = builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
pkgs = import <nixpkgs> {
overlays = [(import rust-overlay)];
};
env = {
};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./toolchain.toml;
in
pkgs.mkShell {
packages = [
toolchain
# If the dependencies need system libs, you usually need pkg-config + the lib
pkgs.pkg-config
pkgs.openssl
];
RUST_BACKTRACE = "full";
TMPDIR = "/tmp";
}