mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-16 02:55:00 +00:00

* Implement initial version of fuzzing * try nix config * try rustup * rustup run * Fix syntax * wip * specific nightly * wip * specific nightly with+ * install * locked
25 lines
574 B
Nix
25 lines
574 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
(pkgs.rustup.override {
|
|
targets = ["x86_64-unknown-linux-gnu"]; # Adjust for your desired target
|
|
})
|
|
];
|
|
|
|
shellHook = ''
|
|
# Ensure rustup is initialized
|
|
export RUSTUP_HOME="$PWD/.rustup"
|
|
export CARGO_HOME="$PWD/.cargo"
|
|
mkdir -p $RUSTUP_HOME $CARGO_HOME
|
|
|
|
# Install Rust nightly
|
|
rustup install nightly
|
|
rustup default nightly
|
|
|
|
# Add rustup and cargo to PATH
|
|
export PATH="$CARGO_HOME/bin:$PATH"
|
|
|
|
echo "Rust nightly and Cargo are available on PATH."
|
|
'';
|
|
}
|