nix develop changes

This commit is contained in:
cnst
2024-09-15 11:29:28 +02:00
parent ab240de51c
commit dee673f212
3 changed files with 18 additions and 24 deletions

View File

@@ -1,7 +1,19 @@
{pkgs ? import <nixpkgs> {}, ...}: {
{
inputs,
pkgs ? import <nixpkgs> {},
...
}: {
default = pkgs.mkShell {
NIX_CONFIG = "extra-experimental-features = nix-command flakes";
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
# Add Rust toolchain from Fenix and rust-analyzer-nightly
packages = [
(inputs.fenix.packages.${pkgs.stdenv.hostPlatform.system}.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
];
nativeBuildInputs = with pkgs; [
# Build tools