Skip to content

Instantly share code, notes, and snippets.

@gnu-enjoyer
Created July 2, 2023 00:55
Show Gist options
  • Select an option

  • Save gnu-enjoyer/6ad829d363a4bf95ef5160e8c48a6717 to your computer and use it in GitHub Desktop.

Select an option

Save gnu-enjoyer/6ad829d363a4bf95ef5160e8c48a6717 to your computer and use it in GitHub Desktop.
Rust Nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rustc cargo gcc rustfmt clippy ];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment