include correct rust install in nix-shell

This commit is contained in:
SeanOMik 2024-03-19 21:40:08 -04:00
parent 834a864544
commit f63a7ae86a
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
2 changed files with 30 additions and 29 deletions

View File

@ -1,5 +1,4 @@
[toolchain]
channel = "nightly-2023-11-21"
#components = [ "rustfmt", "rustc-dev" ]
channel = "nightly"
date = "2023-11-21"
targets = [ "x86_64-unknown-linux-gnu" ]
#profile = "minimal"

View File

@ -1,8 +1,10 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell rec {
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in
with nixpkgs;
stdenv.mkDerivation rec {
name = "lyra_engine_dev";
nativeBuildInputs = [
pkg-config
openssl
@ -13,7 +15,7 @@ mkShell rec {
mold
udev
lua5_4_compat
rustup
(nixpkgs.rustChannelOf { rustToolchain = ./rust-toolchain.toml; }).rust
];
buildInputs = [
udev alsa-lib libGL gcc