Update
This commit is contained in:
parent
299c0f0465
commit
af4cde1e52
29
flake.nix
29
flake.nix
|
@ -13,7 +13,9 @@
|
||||||
# Provides a `rustToolchain` attribute for Nixpkgs that we can use to
|
# Provides a `rustToolchain` attribute for Nixpkgs that we can use to
|
||||||
# create a Rust environment
|
# create a Rust environment
|
||||||
(self: super: {
|
(self: super: {
|
||||||
rustToolchain = super.rust-bin.stable.latest.default;
|
rustToolchain = super.rust-bin.stable.latest.default.override {
|
||||||
|
extensions = [ "rust-src" "rustfmt" "rust-analyzer" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -40,6 +42,31 @@
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rust-llvm = pkgs.mkShell {
|
||||||
|
# The Nix packages provided in the environment
|
||||||
|
packages = (with pkgs; [
|
||||||
|
# The package provided by our custom overlay. Includes cargo, Clippy, cargo-fmt,
|
||||||
|
# rustdoc, rustfmt, and other tools.
|
||||||
|
rustToolchain
|
||||||
|
|
||||||
|
python311
|
||||||
|
cmake
|
||||||
|
ninja
|
||||||
|
libffi
|
||||||
|
]) ++ (with pkgs.llvmPackages_16; [
|
||||||
|
libllvm
|
||||||
|
clang
|
||||||
|
libclang
|
||||||
|
|
||||||
|
# This is the real lld package
|
||||||
|
bintools
|
||||||
|
]);
|
||||||
|
|
||||||
|
# Need this to fix rust-bindgen
|
||||||
|
LIBCLANG_PATH="${pkgs.llvmPackages_16.libclang.lib}/lib";
|
||||||
|
BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${pkgs.llvmPackages_16.libclang.lib}/lib/clang/${nixpkgs.lib.getVersion pkgs.llvmPackages_16.clang}/include";
|
||||||
|
};
|
||||||
|
|
||||||
latex = pkgs.mkShell {
|
latex = pkgs.mkShell {
|
||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
|
|
Loading…
Reference in New Issue