Update
This commit is contained in:
parent
f7b4b68c87
commit
35f10d7f99
10
flake.nix
10
flake.nix
|
@ -7,6 +7,7 @@
|
||||||
outputs = { self, nixpkgs, rust-overlay }:
|
outputs = { self, nixpkgs, rust-overlay }:
|
||||||
let
|
let
|
||||||
# Overlays enable you to customize the Nixpkgs attribute set
|
# Overlays enable you to customize the Nixpkgs attribute set
|
||||||
|
rustExtensions = [ "rust-src" "rustfmt" "rust-analyzer" ];
|
||||||
overlays = [
|
overlays = [
|
||||||
# Makes a `rust-bin` attribute available in Nixpkgs
|
# Makes a `rust-bin` attribute available in Nixpkgs
|
||||||
(import rust-overlay)
|
(import rust-overlay)
|
||||||
|
@ -14,7 +15,10 @@
|
||||||
# create a Rust environment
|
# create a Rust environment
|
||||||
(self: super: {
|
(self: super: {
|
||||||
rustToolchain = super.rust-bin.stable.latest.default.override {
|
rustToolchain = super.rust-bin.stable.latest.default.override {
|
||||||
extensions = [ "rust-src" "rustfmt" "rust-analyzer" ];
|
extensions = rustExtensions;
|
||||||
|
};
|
||||||
|
rustNightlyToolchain = super.rust-bin.nightly.latest.default.override {
|
||||||
|
extensions = rustExtensions;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
@ -47,13 +51,15 @@
|
||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
# The package provided by our custom overlay. Includes cargo, Clippy, cargo-fmt,
|
# The package provided by our custom overlay. Includes cargo, Clippy, cargo-fmt,
|
||||||
# rustdoc, rustfmt, and other tools.
|
# rustdoc, rustfmt, and other tools.
|
||||||
rustToolchain
|
rustNightlyToolchain
|
||||||
|
|
||||||
python311
|
python311
|
||||||
cmake
|
cmake
|
||||||
ninja
|
ninja
|
||||||
libffi
|
libffi
|
||||||
ccache
|
ccache
|
||||||
|
|
||||||
|
arcanist
|
||||||
]) ++ (with pkgs.llvmPackages_16; [
|
]) ++ (with pkgs.llvmPackages_16; [
|
||||||
libllvm
|
libllvm
|
||||||
clang
|
clang
|
||||||
|
|
Loading…
Reference in New Issue