2024-03-20 01:40:08 +00:00
|
|
|
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
|
|
|
|
wasm-pack
|
|
|
|
trunk
|
|
|
|
valgrind
|
|
|
|
heaptrack
|
|
|
|
mold
|
|
|
|
udev
|
|
|
|
lua5_4_compat
|
2024-03-20 15:41:40 +00:00
|
|
|
((nixpkgs.rustChannelOf { rustToolchain = ./rust-toolchain.toml; }).rust.override {
|
|
|
|
extensions = [
|
|
|
|
"rust-src"
|
|
|
|
"rust-analysis"
|
|
|
|
];
|
|
|
|
})
|
2024-03-20 01:40:08 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
udev alsa-lib libGL gcc
|
|
|
|
vulkan-loader vulkan-headers vulkan-tools
|
|
|
|
xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr # To use the x11 feature
|
|
|
|
libxkbcommon wayland # To use the wayland feature
|
2024-03-20 15:41:40 +00:00
|
|
|
|
2024-03-20 01:40:08 +00:00
|
|
|
];
|
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
|
|
}
|