Something went wrong. Try again.
A darwin-compatible alternative to nix-bundle.
nix macos darwin
Something went wrong. Try again.
nix-bundle-darwin shell.nix
441 B · 23 lines
Nix
at main
123456789101112131415161718192021222324{ pkgs ? import <nixpkgs> { },}:pkgs.mkShell { packages = with pkgs; [ cargo cargo-edit rustc rustfmt clippy rust-analyzer nixfmt-rfc-style ];
# Required by rust-analyzer RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
INSTALL_NAME_TOOL = if pkgs.stdenv.hostPlatform.isDarwin then "${pkgs.cctools}/bin/install_name_tool" else "${pkgs.libllvm}/bin/llvm-install-name-tool";}