Skip to content

Instantly share code, notes, and snippets.

@rawkode
Created June 30, 2020 20:07
Show Gist options
  • Save rawkode/e168417a6d9084ca47c7741a8cfa5f4c to your computer and use it in GitHub Desktop.
Save rawkode/e168417a6d9084ca47c7741a8cfa5f4c to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "rust-env";
nativeBuildInputs = [
rustc cargo rustracerrustfmt rls
# Example Build-time Additional Dependencies
pkgconfig
];
buildInputs = [
# Example Run-time Additional Dependencies
openssl
];
# Set Environment Variables
RUST_BACKTRACE = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment