nix-git/modules/rust.nix

28 lines
602 B
Nix
Raw Normal View History

2024-11-11 14:06:54 +01:00
{ config, pkgs, ... }:
let
#rustVersion = pkgs.rust-bin.stable."1.81.0".default.override {
rustVersion = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
#targets = [
# "x86_64-unknown-linux-musl"
# #"arm-unknown-linux-gnueabihf"
# #"wasm32-wasi"
# #"wasm32-unknown-unknown"
#];
};
2024-11-21 22:44:07 +01:00
# This is depreciated.
#rustPlatform = pkgs.makeRustPlatform {
# cargo = rustVersion;
# rustc = rustVersion;
#};
2024-11-11 14:06:54 +01:00
in
{
environment.systemPackages = with pkgs; [
2024-11-21 22:44:07 +01:00
# This is depreciated.
#rustPlatform.rust.cargo
rustVersion
2024-11-11 14:06:54 +01:00
];
}