hello-world.rs/shell.nix
legendofmiracles 49a64d1672
adds nix
2021-08-14 09:25:33 -06:00

33 lines
609 B
Nix

{ pkgs ? import <nixpkgs> {
overlays = [
(import (fetchTarball
"https://github.com/nix-community/fenix/archive/main.tar.gz"))
(self: super: {
rustc = super.fenix.latest.rustc;
cargo = super.fenix.latest.cargo;
rust-src = super.fenix.latest.rust-src;
}
)
];
}
}:
pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
rust-analyzer
gcc
gtk3
pkg-config
rustfmt-preview
clippy-preview
alsa-lib
openssl
cmake
python3
];
RUST_SRC_PATH = "${pkgs.rust-src}/lib/rustlib/src/rust/library";
}