nix: update shell config

This commit is contained in:
Harsh Shandilya 2022-03-28 13:49:08 +05:30
parent 13f0536d63
commit 598fb1304e
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -1,15 +1,16 @@
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" ];
})
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 ];
}