mirror of
https://github.com/casey/just.git
synced 2025-12-23 11:37:29 +00:00
20 lines
498 B
Nix
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";
|
|
}
|