nix: update shell config

This commit is contained in:
Harsh Shandilya 2022-03-28 13:12:25 +05:30
parent 58809b1f74
commit 9ac2d098e2
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 9 additions and 6 deletions

View file

@ -1,11 +1,14 @@
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
mkShell {
RUSTFLAGS = "";
buildInputs = [
(rust-bin.selectLatestNightlyWith (toolchain:
toolchain.default.override {
extensions = [ "rust-src" "rustfmt-preview" ];
}))
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rustfmt-preview" ];
targets =
pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ]
++ pkgs.lib.optionals pkgs.stdenv.isLinux
[ "x86_64-unknown-linux-musl" ];
})
xorg.libxcb
python39
];
}