From 598fb1304e17776b8e6e8063201f220fc41fadec Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 28 Mar 2022 13:49:08 +0530 Subject: [PATCH] nix: update shell config --- shell.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/shell.nix b/shell.nix index 0bc21dd..f77499d 100644 --- a/shell.nix +++ b/shell.nix @@ -1,15 +1,16 @@ with import { overlays = [ (import ) ]; }; 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" ]; + }) pkg-config openssl - clang_12 - ] ++ lib.optionals stdenv.isDarwin [ - pkgs.darwin.apple_sdk.frameworks.Security - ]; + clang_13 + ] ++ lib.optionals stdenv.isDarwin + [ pkgs.darwin.apple_sdk.frameworks.Security ]; }